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

Documentation updates for IncludeOS v0.15.0 #16

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

staiyeba
Copy link
Contributor

@staiyeba staiyeba commented Apr 4, 2019

Please review this PR when IncludeOS v0.15.0 release has been made.

Copy link
Contributor

@mnordsletten mnordsletten left a 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 Show resolved Hide resolved
in_depth/Testing.rst Outdated Show resolved Hide resolved
in_depth/Testing.rst Outdated Show resolved Hide resolved
in_depth/Testing.rst Outdated Show resolved Hide resolved

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:
Copy link
Contributor

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.

Copy link
Contributor

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

Copy link
Contributor Author

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.

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

Successfully merging this pull request may close these issues.

2 participants