Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

A minimal reproducible case for an issue with coverage information not being generated with the `datatest-stable` crate

Notifications You must be signed in to change notification settings

zaneduffield/datatest_coverage_issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo is a minimal reproducible case for an issue I have with coverage not being generated when using the datatest_stable crate.

Requirements

cargo install llvm-cov

Steps

  1. Generate coverage
    # at root of repo
    cargo llvm-cov --html --open
  2. Observe no hits in to_cover::main (despite 'Hello, world!' being printed to stdout)
  3. Open tests/datatest.rs and swap the harness macro with the main function provided
  4. Generate coverage again (step 1).
  5. Observe hits in to_cover::main.

About

A minimal reproducible case for an issue with coverage information not being generated with the `datatest-stable` crate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages