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

Check if / how to integrate cucumber tests into coverage #29

Open
omallassi opened this issue Feb 20, 2020 · 0 comments
Open

Check if / how to integrate cucumber tests into coverage #29

omallassi opened this issue Feb 20, 2020 · 0 comments
Labels
code quality enhancement New feature or request help wanted Extra attention is needed

Comments

@omallassi
Copy link
Owner

omallassi commented Feb 20, 2020

Following would be to use cargo-kcov. it was a test to integrate cucumber tests but it seems like kcov fails while reading cucumber

extract from https://travis-ci.org/omallassi/adrust/jobs/652901336

cargo-kcov 0.5.2
2836    Coverage found the following executables: ["/home/travis/build/omallassi/adrust/target/debug/adr_search-b83ba7d78b9cb9a6", "/home/travis/build/omallassi/adrust/target/debug/create_adr-600ddbd55dcf1721", "/home/travis/build/omallassi/adrust/target/debug/adr-54c7196f98ac1e56", "/home/travis/build/omallassi/adrust/target/debug/adr_config-ef1e10ed339cb571", "/home/travis/build/omallassi/adrust/target/debug/adr_core-fb277a0cdad7dd02"]
2837     Running "kcov" "--exclude-pattern=/home/travis/.cargo" "--verify" "/home/travis/build/omallassi/adrust/target/cov/adr_search-b83ba7d78b9cb9a6" "/home/travis/build/omallassi/adrust/target/debug/adr_search-b83ba7d78b9cb9a6"
2838
2839running 0 tests
2840
2841test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
2842
2843     Running "kcov" "--exclude-pattern=/home/travis/.cargo" "--verify" "/home/travis/build/omallassi/adrust/target/cov/create_adr-600ddbd55dcf1721" "/home/travis/build/omallassi/adrust/target/debug/create_adr-600ddbd55dcf1721"
2844No such file or directory (os error 2)
2845There was an error parsing "./features/adr_lifecycle"; aborting.
2846error: failed to get coverage
2847caused by: exit code: 1

The following coud be happened to .travis.yml

    &&
    sudo apt-get install cmake g++ pkg-config jq &&
    cargo install --force cargo-kcov &&
    cargo kcov --print-install-kcov-sh | sh &&
    cargo kcov -vV &&
    cargo kcov --verbose --coveralls --all --no-clean-rebuild &&
    echo "Uploaded code coveralls via cargo-kcov"
@omallassi omallassi added code quality enhancement New feature or request help wanted Extra attention is needed labels Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant