forked from secure-systems-lab/securesystemslib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make aggregate_tests callable from project dir
This is Python testing convention and allows coverage to correctly record the paths of the source files and left-strip the parts leading to the project directory. This commit also replaces manual test loading with the unittest `discover` function, which adds some path magic, so that tests are actually run over the source code in the project dir. For the sake of simplified test discovery, this commit removes randomization of test module loading. It also does not seem beneficial to just shuffle the test modules and not the test cases or test methods.
- Loading branch information
Showing
4 changed files
with
5 additions
and
27 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,5 @@ exclude_lines = | |
|
||
omit = | ||
*/securesystemslib/_vendor/* | ||
*/tests/* | ||
*/site-packages/* |
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 |
---|---|---|
|
@@ -20,7 +20,4 @@ script: | |
- tox | ||
|
||
after_success: | ||
- cd tests | ||
- coveralls | ||
- cd - | ||
|
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