CC: | pete [...] cubabit.net |
Subject: | Module raises exception when prove uses multiple jobs |
When I use -j2 as a parameter to prove to run tests in parallel, an exception is raised. This means the formatter can only be used to run tests in serial.
Attached is a test. Here is the output:
pete@perl-builder:~/scratch/tc_tap_test$ prove -lvr --formatter TAP::Formatter::TeamCity t/##teamcity[testSuiteStarted name='t/1.t']
##teamcity[testStarted captureStandardOutput='true' name='No test name given']
##teamcity[testFinished name='No test name given']
##teamcity[testSuiteFinished name='t/1.t']
##teamcity[testSuiteStarted name='t/2.t']
##teamcity[testFinished name='No test name given']
##teamcity[testStarted captureStandardOutput='true' name='No test name given']
##teamcity[testFinished name='No test name given']
##teamcity[testSuiteFinished name='t/2.t']
All tests successful.
Files=2, Tests=2, 0 wallclock secs ( 0.05 usr 0.02 sys + 0.04 cusr 0.04 csys = 0.15 CPU)
Result: PASS
pete@perl-builder:~/scratch/tc_tap_test$ prove -lvr -j2 --formatter TAP::Formatter::TeamCity t/
##teamcity[testSuiteStarted name='t/1.t']
##teamcity[testStarted captureStandardOutput='true' name='No test name given']
##teamcity[testFinished name='No test name given']
##teamcity[testSuiteFinished name='t/1.t']
Can't call method "get_select_handles" on an undefined value at /opt/cubabit/perl/lib/5.20.3/TAP/Parser.pm line 1354.
pete@perl-builder:~/scratch/tc_tap_test$
Subject: | tc_tap_test.tar.gz |
Message body not shown because it is not plain text.