Opened 14 years ago
Closed 14 years ago
#362 closed enhancement (fixed)
test_all.py verbosity keeps changing
Reported by: | wilsonr | Owned by: | ole |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Testing and validation | Version: | |
Severity: | normal | Keywords: | |
Cc: |
Description
Running anuga_core/source/anuga/test_all.py used to print a single character for each test (something in '.EF'). Now it is verbose, one line per test. I suspect somebody changed the verbosity temporarily and checked it in.
In addition, there is code to test for a 'V' param and get *less* verbose if it's specified, contrary to expectations ('v' means more verbose).
Modify anuga_core/source/anuga/test_all.py to run as before (one char per test) if no params, accept -v to indicate verbose or accept -q to go quiet (like 'V' param)
Change History (2)
comment:1 Changed 14 years ago by wilsonr
comment:2 Changed 14 years ago by wilsonr
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Modified the test_all.py file to take '-v' and '-q' options.
The '-q' option does what the old 'V' param did - capture statistics in file ./.temp.
The '-v' option increases the verbosity count (verbosity=1 is the default).
There should no longer be any need to edit the file to increase/decrease the verbosity number.
Should the higher level test_all.py files that call this one also accept -v and -q and pass them down? If so, just make a string from args and pass that down - don't check the args.