qickrooms / flex-mojos

Automatically exported from code.google.com/p/flex-mojos
0 stars 0 forks source link

testing-support SocketReport.totalTestCount is incorrect #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new FlexUnit TestCase with 2 or more test methods.
2. Run mvn test

What is the expected output? What do you see instead?
All test methods should have run but instead one test runs and then the
FlashPlayer shuts down.

What version of the product are you using? On what operating system?
2.0M9 FlexUnit 0.9.

Please provide any additional information below.
While digging deeper I found that the static function
SocketReporter.runTests(tests:Array):void is counting the number of
TestCases passed in the array. Instead is should be counting the number of
tests as returned by FlexUnitListener.run(tests).

By moving the line with "SocketReporter.totalTestCount = tests.length;" to
the bottom of the runTests method and changing it to
"SocketReporter.totalTestCount = testsScheduledToRun;" all tests run and
the FlashPlayer is closed at the proper time.

Original issue reported on code.google.com by llin...@gmail.com on 24 Nov 2008 at 7:43

GoogleCodeExporter commented 9 years ago
Fixed at revision 927

Original comment by velo...@gmail.com on 3 Dec 2008 at 1:07