Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Execution branch coverage report #4755

Merged
merged 17 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mention —coverage-report for dafny test
  • Loading branch information
robin-aws committed Nov 8, 2023
commit 6f2a5d400ebe73254623250cc270dbaa340941de
2 changes: 1 addition & 1 deletion Source/DafnyCore/Feature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public enum Feature {
[FeatureDescription("All built-in types in runtime library", "#sec-compilation-built-ins")]
BuiltinsInRuntime,

[FeatureDescription("Execution coverage report", "#sec-compilation-built-ins")]
[FeatureDescription("Execution coverage report", "#sec-dafny-test")]
RuntimeCoverageReport
}

Expand Down
5 changes: 4 additions & 1 deletion docs/DafnyRef/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ In particular, it accepts the `--target` option that specifies the programming l
- `--output` - gives the folder and filename root for compilation artifacts
- `--methods-to-test` - the value is a (.NET) regular expression that is matched against the fully
qualified name of the method; only those methods that match are tested
- `--coverage-report` - the value is a directory in which Dafny will save an html coverage report highlighting parts of
the program that execution of the tests covered.

The order in which the tests are run is not specified.

Expand Down Expand Up @@ -1517,7 +1519,8 @@ include a list of proof dependencies (including source location and
description) alongside every assertion batch in the generated log
whenever one of the two warning options above is also included. The
latter will produce a highlighted HTML version of your source code, in
the same format used by `dafny generate-tests --verification-coverage-report`,
the same format used by `dafny test --coverage-report`
and `dafny generate-tests --verification-coverage-report`,
indicating which parts of the program were used, not used, or partly
used in the verification of the entire program.

Expand Down