Skip to content

Commit dd679eb

Browse files
committed
First version of the README file
1 parent 6dafec9 commit dd679eb

File tree

1 file changed

+36
-3
lines changed

1 file changed

+36
-3
lines changed

Diff for: README.md

+36-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
1-
doxy-coverage
2-
=============
1+
# doxy-coverage
2+
3+
**doxy-coverage** is a source code documentation coverage measurement tool. Its primary use case is to gate on the percentage of API and structures documented on software projects.
4+
5+
***
6+
7+
## How it works
8+
9+
First, Doxygen must be run on your project's source code to generate some XML documentation files. Doxy-coverage consumes those files and reports the documentation coverage.
10+
11+
A non-zero exit code will be returned if the source code documentation is below certain treshold, which allows to integrate this script with CI systems seamlessly.
12+
13+
## Getting Started
14+
First create a doxygen.conf file. If you have one already, make sure `GENERATE_XML` is set to `YES`. If not, create it with the following lines:
15+
16+
```
17+
GENERATE_XML=YES
18+
GENERATE_HTML=NO
19+
GENERATE_LATEX=NO
20+
```
21+
22+
Then, execute `doxygen -w doxygen.conf` in your source directory. It will generate an `xml` directory with the files that doxy-coverage consumes.
23+
24+
Lastly, execute doxy-coverage with the path to the `xml` directory:
25+
26+
```
27+
doxy-coverage.py /path/to/xml
28+
```
29+
30+
## Example
31+
32+
The [libhpack](https://github.com/alobbs/libhpack) library [CI](https://travis-ci.org/alobbs/libhpack) system uses doxy-coverage to ensure the its documentation level is high enough and it doesn't suffer regressions over the time.
33+
34+
--
35+
Alvaro Lopez Ortega
36+
337

4-
Source Code Documentation Coverage Measurement

0 commit comments

Comments
 (0)