mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Bundle tests with applications
- For each application, add ./tests directory and __init__.py file within it. - Modify test controllers (coverage.py, runtests.py) to find the new test directories for testing and coverage analysis. - Move existing application-specific test modules (test_pagekite.py) to the newly created directories.
This commit is contained in:
1 parent
f91be5a4f9
commit
d64ce6cc01
25 files changed
+11
-3
No files matched your search
@@ -37,7 +37,10 @@ import time
|
||||
SOURCE_DIRS = ['plinth'] + glob.glob('plinth/modules/*')
|
||||
|
||||
# Files to exclude from coverage analysis and reporting
|
||||
FILES_TO_OMIT = ['plinth/tests/*.py']
|
||||
FILES_TO_OMIT = [
|
||||
'plinth/tests/*.py',
|
||||
'plinth/modules/*/tests/*.py'
|
||||
]
|
||||
|
||||
# Location of coverage HTML report files
|
||||
COVERAGE_REPORT_DIR = 'plinth/tests/coverage/report'
|
||||
|
||||
Reference in new issue
Block a user