You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rdoc
+12-7Lines changed: 12 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
After wasting too much time trying to figure out ASUnit and feeling sick about how bloated its codebase was I decided to roll my own. This is the result.
8
8
9
-
Note: I realized to day I had been looking only at asunit2 when I should have been looking at the refactored and better looking asunit25. That said asunit25 still looks like Java and Actionscript is not Java. LeanUnit is a whole lot leaner and to the point if you'll pardon my shameless self promotion.
9
+
Note: I later realized I had been looking only at asunit2 when I should have been looking at the refactored and better looking asunit25. That said asunit25 still looks like Java and Actionscript is not Java. LeanUnit is a whole lot leaner and to the point if you'll pardon my shameless self promotion.
10
10
11
11
== REQUIREMENTS
12
12
@@ -109,17 +109,22 @@ Then compile from the command line using something like:
109
109
110
110
Now you can run the generated .swf through Flash Player or from your webbrowser and watch the results.
111
111
112
-
=== Running Multiple Test Cases Using TestSuite
112
+
=== Running Multiple Test Cases
113
113
114
-
If you want to run more than one test case but still only do one report for all tests you can use the TestSuite class. Instantiate a TestSuite and add cases using the addCase function like in the example.
114
+
You can add any number of test cases you want to run to your test suite before running it. TestSuite extends Array so you can work with it just like an array.
115
115
116
116
import leanUnit.*
117
117
import test.*
118
118
119
-
var testSuite = new TestSuite()
120
-
testSuite.addCase( new StringTest() )
121
-
testSuite.addCase( new ArrayTest() )
122
-
testSuite.run()
119
+
// The horisontal way
120
+
var suite = new TestSuite( StringTest, ArrayTest )
0 commit comments