Skip to content

Commit

Permalink
Update to runtests.py
Browse files Browse the repository at this point in the history
Updated to notify user of levels being run and if exodus was included
  • Loading branch information
ehinrichs committed Jan 19, 2024
1 parent 152170a commit e179c3b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def main():

# Ensure Level 3 is not automatically run
if 3 in args.levels:
print("Level 3 is for Developer only and should be run manually.")
print("Level 3 is for Developers only and should be run manually.")
sys.exit(1)

# Log the parsed arguments for debugging
Expand All @@ -76,6 +76,13 @@ def main():
# Collect test directories based on specified levels
test_dirs = test_lg.collect_test_dirs(TEST_ROOT, args.levels)

# Output to let user know current testing levels
print("\nRunning tests in level(s): "+str(args.levels)[1:-1] )

# Output to let user know that Exodus is not being tested
if 2 not in args.levels:
print("\n ** Exodus is not being tested. To test Exodus, please run Level 2. **")

# Dynamically generate unittest functions for each test directory
for test_dir in test_dirs:
# Generate a unique test name based on the test directory
Expand All @@ -90,5 +97,4 @@ def main():

# Entry point for the script
if __name__ == '__main__':
main()

main()

0 comments on commit e179c3b

Please sign in to comment.