mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-07 22:04:03 -05:00
book/development: Add note on codecov.
This commit is contained in:
5
Makefile
5
Makefile
@@ -72,6 +72,9 @@ rustdoc: token_lists contracts $(PROOFS_BIN)
|
||||
test: token_lists $(PROOFS_BIN) contracts
|
||||
$(CARGO) test --release --all-features --all
|
||||
|
||||
coverage: token_lists contracts $(PROOFS_BIN)
|
||||
$(CARGO) llvm-cov --release --all-features --workspace --html
|
||||
|
||||
cleanbin:
|
||||
rm -f $(BINS)
|
||||
|
||||
@@ -97,4 +100,4 @@ uninstall:
|
||||
rm -f $(DESTDIR)$(PREFIX)/bin/$$i; \
|
||||
done;
|
||||
|
||||
.PHONY: all contracts token_lists check fix clippy rustdoc test cleanbin clean install uninstall
|
||||
.PHONY: all contracts token_lists check fix clippy rustdoc test cleanbin clean install uninstall coverage
|
||||
|
||||
@@ -82,3 +82,14 @@ This allows us to coordinate more effectively.
|
||||
|
||||
Another option is to run your ircd inside a persistant tmux session, and never miss messages.
|
||||
|
||||
## Code coverage
|
||||
|
||||
You can run codecov tests of the codebase using
|
||||
[`cargo-llvm-cov`](https://github.com/taiki-e/cargo-llvm-cov):
|
||||
|
||||
```
|
||||
$ cargo install cargo-llvm-cov
|
||||
$ make coverage
|
||||
```
|
||||
|
||||
You can then find the reports in `target/llvm-cov/html/index.html`
|
||||
|
||||
Reference in New Issue
Block a user