Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commented out test timings to test files. #285

Open
glennj opened this issue Mar 22, 2023 · 0 comments
Open

Add commented out test timings to test files. #285

glennj opened this issue Mar 22, 2023 · 0 comments

Comments

@glennj
Copy link
Contributor

glennj commented Mar 22, 2023

Something like

#!/usr/bin/env tclsh
package require tcltest
namespace import ::tcltest::*

# Uncommenting the next line will display the duration of each test 
#configure -verbose {error body usec}

source testHelpers.tcl

Without that configure command, the sieve exercise testing looks like

$ RUN_ALL=true ./sieve.test
sieve.test:     Total   5       Passed  5       Skipped 0       Failed  0

With it:

$ RUN_ALL=true ./sieve.test
++++ sieve-1 took 243 μs
++++ sieve-2 took 67 μs
++++ sieve-3 took 31 μs
++++ sieve-4 took 31 μs
++++ sieve-5 took 398 μs
sieve.test:     Total   5       Passed  5       Skipped 0       Failed  0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant