erikandersen-pariveda / fluint

Automatically exported from code.google.com/p/fluint
0 stars 0 forks source link

Adding TestCase the TestRunner.startTest method aborts with no errors #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a TestCase, NOT a TestSuite, to the TestRunner.startTest array parameter
2. Run your Test runner (I'm using the FlexTestRunner.mxml that comes with 
fluint)
3. Nothing happens, no errors, no exceptions.

What is the expected output? What do you see instead?

An exception saying, "You must only add TestSuites to the TestRunner.startTests 
method.  Please 
ensure you are not passing TestCases in there by accident".  Basically, verify 
the contents of the 
Array / ArrayCollection passed in to ensure of type TestSuite only.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by jesse.wa...@gmail.com on 24 Dec 2008 at 1:27

GoogleCodeExporter commented 8 years ago
Jesse,

This should work. Internally it should wrap this in a generic suite, so I need 
to 
see why it is not happening

Original comment by malabri...@gmail.com on 19 Jan 2009 at 9:01

GoogleCodeExporter commented 8 years ago
Got it. It will work if you just pass a TestCase directly to the startTests(). 
It 
fails if you put the TestCase as an element of the array. 

Code fixed in trunk. Checks each element of the array and wraps each as needed.

Mike

Original comment by malabri...@gmail.com on 20 Jan 2009 at 7:55