Skip to content

Commit

Permalink
Update config and TestDriver with new paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
LswaN58 committed Dec 19, 2024
1 parent 571cce7 commit 00f2390
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/TestDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,20 @@
# loader = TestLoader()
# TODO : At the moment, this is just module-level, should eventually go to class-level selection.
suite = TestSuite()
if _config.EnabledTests.get('CONFIGS'):
print("***\nAdding configs:")
suite.addTest(defaultTestLoader.discover('./tests/cases/configs/', pattern="t_*.py", top_level_dir="./"))
print("Done\n***")
if _config.EnabledTests.get('INTERFACES'):
print("***\nAdding interfaces:")
suite.addTest(defaultTestLoader.discover('./tests/cases/interfaces/', pattern="t_*.py", top_level_dir="./"))
print("Done\n***")
if _config.EnabledTests.get('SCHEMAS'):
print("***\nAdding schemas:")
suite.addTest(defaultTestLoader.discover('./tests/cases/schemas/', pattern="t_*.py", top_level_dir="./"))
print("Done\n***")
if _config.EnabledTests.get('UTILS'):
print("***\nAdding APIUtils:")
print("***\nAdding Utils:")
suite.addTest(defaultTestLoader.discover('./tests/cases/utils/', pattern="t_*.py", top_level_dir="./"))
print("Done\n***")

Expand Down
1 change: 1 addition & 0 deletions tests/config/t_config.py.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
settings = {
"VERBOSE" : False,
"ENABLED" : {
"CONFIGS":True,
"INTERFACES":True,
"SCHEMAS":True,
"UTILS":True
Expand Down

0 comments on commit 00f2390

Please sign in to comment.