Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include automatic and manual test documentation.
- Loading branch information
Showing
6 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ Contents: | |
|
||
intro | ||
modules | ||
tests.modules | ||
|
||
Indices and tables | ||
================== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
Testing Blivet | ||
============== | ||
|
||
Note: The test suite documented here is available only from the git repository | ||
not as part of any installable packages. | ||
|
||
In order to execute blivet's test suite from inside the source directory execute | ||
the command:: | ||
|
||
make test | ||
|
||
Tests descending from :class:`~.imagebackedtestcase.ImageBackedTestCase` or | ||
:class:`~.loopbackedtestcase.LoopBackedTestCase` require root access on the | ||
system and will be skipped if you're running as non-root user. | ||
Tests descending from :class:`~.imagebackedtestcase.ImageBackedTestCase` will | ||
also be skipped if the environment variable JENKINS_HOME is not defined. If | ||
you'd like to execute them use the following commands (as root):: | ||
|
||
# export JENKINS_HOME=`pwd` | ||
# make test | ||
|
||
To execute the Pylint code analysis tool run:: | ||
|
||
make check | ||
|
||
Running Pylint doesn't require root privileges. | ||
|
||
It is also possible to generate test coverage reports using the Python coverage | ||
tool. To do that execute:: | ||
|
||
make coverage | ||
|
||
It is also possible to check all external links in the documentation for | ||
integrity. To do this:: | ||
|
||
cd doc/ | ||
make linkcheck | ||
|
||
Test Suite Architecture | ||
------------------------ | ||
|
||
Blivet's test suite relies on the base classes shown below. These classes | ||
take care of working with fake block or loop devices. | ||
|
||
.. inheritance-diagram:: | ||
tests.imagebackedtestcase | ||
tests.loopbackedtestcase | ||
tests.storagetestcase | ||
tests.devicetree_test.BlivetResetTestCase | ||
|
||
Actual test cases inherit either :class:`unittest.TestCase` or one of | ||
these base classes. Some use cases require more levels of abstraction | ||
which is shown on the following diagram. | ||
|
||
.. inheritance-diagram:: | ||
tests.devicetree_test | ||
tests.formats_test.fs_test | ||
tests.formats_test.fslabeling | ||
|