Skip to content

Releases: software-mansion/cairo-coverage

0.6.0

09 Sep 15:03
47d7935

Choose a tag to compare

Added

  • support for scarb 2.12.0

Removed

  • default cairo-coverage command. You must now use cairo-coverage run to generate a coverage report.
  • support for windows. We recommend using the Windows Subsystem for Linux (WSL) to run cairo-coverage on Windows.
  • support for scarb 2.8.*.
  • option to include test functions in the coverage report as this only worked for 2.8.*. It Will be brought back in
    the future.

0.5.0

06 Mar 15:33
3671bde

Choose a tag to compare

Added

  • warning if the current scarb version doesn't support not including macros in the coverage report
  • --unstable flag to enable unstable features. Read more about
    it here

Changed

  • macros are now by default included in the coverage report. If you want to exclude them, use the --include without
    the macros option (can also have empty value). This is due to a new stability policy. Read more about
    it here
  • by default, the hit count of the lines will be truncated to 1. This can be changed with the --no-truncation flag.
    This is due to a new stability policy. Read more about it here

0.4.0

04 Feb 09:34
dd40d8d

Choose a tag to compare

Added

  • cairo-coverage clean command to remove all generated files. This is useful as by default, if a coverage report
    already exists, the new report is appended to it. So if you want to start fresh, you can use this command.

Changed

  • cairo-coverage is now up to 2x faster. This is achieved by using multiple threads
  • cairo-coverage must be called within a scarb-managed workspace as now it uses scarb metadata to infer the project
    root directory
  • .cairo-coverage-ignore file now is only accepted in the project root directory

0.3.0

10 Dec 11:09
311428a

Choose a tag to compare

Added

  • .cairo-coverage-ignore file to exclude files or directories from the coverage report

0.3.0-rc0

21 Nov 14:47
f9a5549

Choose a tag to compare

0.3.0-rc0 Pre-release
Pre-release

Fixed

  • Fixed project inference to work with upcoming snforge 0.34.0
  • A lot of false negatives in the coverage report (your code has executed at this line but it is not marked as executed). Note: That this might remove some true positives/negatives (mark them as not executable). Please report any issues you find.

0.2.0

17 Sep 12:33
eb97e2a

Choose a tag to compare

Added

  • Support for contracts
  • Option to not include macros in coverage report. To get the same behavior as before use --include macros
  • --project-path flag to specify the path to the project root directory. This useful when inference fails

Fixed

  • Bug where hit count was not correctly calculated for functions declared at same line
  • Functions from imported projects are no longer included in report when SCARB_CACHE is set

Changed

  • --include-test-functions was remove in favor of --include. To get same behavior as before
    use --include tests-functions
  • Only the start of the function is now included in the report. The end of the function is optional in the lcov format
    and would produce a warning in tools like genhtml when two or more functions are declared on the same line

0.1.0

17 Sep 12:20
7e17833

Choose a tag to compare

First release of cairo-coverage!