Code Coverage #3208
                  
                    
                      JonathanWoollett-Light
                    
                  
                
                  started this conversation in
                Ideas
              
            
            
              Code Coverage
            
            #3208
          
          
        Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently we have encountered issues with code coverage, specifically cargo-kcov and kcov, this resulted in segmentation faults and inaccurate coverage on #3105 and #3076.
This lead us down 2 different paths:
Both of these still have issues, notably with support for proc-macros and doctests.
A possible alternative may be cargo-llvm-cov although this has some notable surface level issues:
A couple other issues have been open for a while about coverage:
This would lead to a discussion worth having about the correct path forward here, be this kcov, grcov, cargo-llvm-cov or some other alternative.
Footnotes
In CPUID (2/3): Bit fields #3105
env RUSTFLAGS="-C instrument-coverage" RUSTDOCFLAGS="-C instrument-coverage -Z unstable-options --persist-doctests ../../target/debug/doctestbins" LLVM_PROFILE_FILE="coverage-%p-%m.profraw" cargo +nightly testrequires 0.58s whilecargo +nightly llvm-cov --html --doctestsrequires 20.55s. ↩Beta Was this translation helpful? Give feedback.
All reactions