-
Notifications
You must be signed in to change notification settings - Fork 9
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
Documentation updates for IncludeOS v0.15.0 #16
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small things here :)
in_depth/Testing.rst
Outdated
|
||
All the tests are grouped by categories as listed in the folder. The unit tests for each of the categories of tests are located under ``IncludeOS/test/<category>/unit/<test-name>.cpp``. | ||
|
||
To run all the unit tests simultaneously do: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not actually run the tests. Only installs them. Ready for cmake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See here how they are actually run (before we started doing coverage at the same time)
https://github.com/includeos/IncludeOS/blob/3fa07fd5377043d660d46c17399643592323ec5f/Jenkinsfile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separated this into two sections as follows:
To install and build the unit tests do:
::
$ conan install IncludeOS/test -pr gcc-7.3.0-linux-x86_64 -s build_type=Debug
$ . ./activate.sh
Then to run the unit tests in random order do;
::
$ ctest --schedule-random
If you want to get the coverage report for the unit tests as well do:
::
# build with coverage
$ . ./activate.sh && cmake -DCOVERAGE=ON -DCODECOV_HTMLOUTPUTDIR=<your-coverage-dir> IncludeOS/test
# build and test with coverage
$ . ./activate.sh && make -j nproc coverage
After running the unit tests, you can then view the coverage report in html format
in the path you specified.
We can remove the section on coverage if it's not something we are concentrating on yet.
Please review this PR when IncludeOS v0.15.0 release has been made.