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

How to generate total report base on stmt+mcdc #14

Open
dlt-lee opened this issue Dec 24, 2020 · 0 comments
Open

How to generate total report base on stmt+mcdc #14

dlt-lee opened this issue Dec 24, 2020 · 0 comments

Comments

@dlt-lee
Copy link

dlt-lee commented Dec 24, 2020

Hi
I use the following command to generate total unit report base on stmt+mcdc. But I still need --units/--scos.,why?
bjuci@bjuci-ThinkPad-X270-W10DG:~/github/gtest-demo/build$ gnatcov run --level=stmt+decision ./bin/unit_tests --routines=f
warning: Support for coverage of non-instrumented native programs is deprecated and will disappear after GNATcoverage 21 releases. You are encouraged to migrate to instrumentation-based coverage: you can read more about it in our documentation: http://docs.adacore.com/gnatcoverage-docs/html/gnatcov.html
Running main() from gtest_main.cc
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from example
[ RUN ] example.add
[ OK ] example.add (10 ms)
[ RUN ] example.subtract
[ OK ] example.subtract (1 ms)
[----------] 2 tests from example (19 ms total)

[----------] Global test environment tear-down
[==========] 2 tests from 1 test case ran. (56 ms total)
[ PASSED ] 2 tests.
bjuci@bjuci-ThinkPad-X270-W10DG:~/github/gtest-demo/build$ gnatcov coverage --level=stmt+mcdc --annotate=html unit_tests.trace --routines=f
gnatcov: Please specify SCOs on the command line, specifying Units in project or using --units/--scos.
Usage: gnatcov coverage [OPTIONS] TRACE_FILEs
Run 'gnatcov coverage --help' for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant