You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,3 +39,24 @@ Chat history logs can be found at https://gnusha.org/secp256k1/.
39
39
## Contributor workflow & peer review
40
40
41
41
The Contributor Workflow & Peer Review in libsecp256k1 are similar to Bitcoin Core's workflow and review processes described in Core's [CONTRIBUTING.md](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md).
42
+
43
+
### Test coverage
44
+
45
+
This library aims to have full coverage of reachable lines and branches.
46
+
47
+
To create a test coverage report, configure with `--enable-coverage` (use of GCC is necessary):
48
+
49
+
$ ./configure --enable-coverage
50
+
51
+
Run the tests:
52
+
53
+
$ make check
54
+
55
+
To create a report, `gcovr` is recommended, as it includes branch coverage reporting:
56
+
57
+
$ gcovr --exclude 'src/bench*' --print-summary
58
+
59
+
To create a HTML report with coloured and annotated source code:
If configured with `--enable-benchmark` (which is the default), binaries for benchmarking the libsecp256k1 functions will be present in the root directory after the build.
0 commit comments