Item9129: testrunnier -worker has taint issue.
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
setting aside that i don't know what
-worker
does, now that we've started to run with -T, it doesn't work
C:\src\svn.foswiki.org\trunk\core\test\unit>perl -wT ..\bin\TestRunner.pl -worker -clean Fn_SEARCH.pm
Options: -worker -clean
exporting FOSWIKI_ASSERTS=1 for extra checking; disable by exporting FOSWIKI_ASSERTS=0
Assert checking on 1
Use of uninitialized value $testToRun in string eq at C:\src\svn.foswiki.org\trunk\core\lib/Unit/TestRunner.pm line 227.
Insecure dependency in eval while running with -T switch at C:\src\svn.foswiki.org\trunk\core\lib/Unit/TestRunner.pm lin
e 232.
--
SvenDowideit - 09 Jun 2010
I believe it lets you run the unit tests in individual sub-processes, which provides (almost) total state separation.
Item1871: Provide infrastructure for unit tests to run in separate processes.
The default is to run them all in a single process (as is current behaviour).
Unit tests will be run in a separate process if they override run_in_new_process() so that it returns true
MichaelTempest did it, so marking for his fb.
--
CrawfordCurrie - 29 Jun 2010
That is exactly it. -worker is intended for
TestRunner.pm's internal use only.
Fixed it on 1.1, and closing. Changed the component to Extension, UnitTestContrib and set the TargtRelease to n/a, since this isn't part of the core Foswiki.
--
MichaelTempest - 29 Jun 2010