Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Can't alter the format of the test summary in multi-threaded mode

Closed / Invalidc2dcd1ba757ce285630c726a43fc14fda1989355Created 5 years agoUpdated 5 years ago
Descriptionplain2021-12-19 08:08:38
System:
Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz
16.0 GB RAM
Windows 7 Pro SP1 64-bit
IronTcl 8.6.7 x64
tcltest 2.4.1

Test script:
  package require tcltest
  tcltest::configure -outfile test_results.txt
  tcltest::runAllTests

Given: A directory with some *.test files in it to run

If you change this line in "tcltest-2.4.1.tm":

    2443  puts -nonewline [outputChannel] "$testFileName:"

and remove the colon at the end, instead of a summary count of the test run,
you get a summary of the results of each test, and the test run summary at
the end is all zeros.

If you use

    tcltest::configure -outfile test_results.txt -singleproc 1

then the summary is as expected.
jan.nijtmanswiki2022-01-13 12:05:11

The reason for this is here. If you want to change the header, you should change the regexp recognizing this header in the default mode too. So, I would say it works as designed.

Sorry!

jan.nijtmans Closed ticket [c2dcd1ba75]. [History diff]2022-01-15 11:24:57
Log in (anonymous is fine) to add a comment.