This repository was archived by the owner on Nov 3, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -51,23 +51,29 @@ PhantomJS.
51
51
52
52
To add a new test, you only have to write the test (and add it somewhere under
53
53
the test/ directory, preferably on test/unit) and then add a new .html file to
54
- test/test_scripts. That file should have the < script > tags to load your unit
54
+ test/test_scripts. That file should have the & lt ; script& gt ; tags to load your unit
55
55
test and any other script file you need (like the one you're actually testing).
56
56
57
57
More notes about testing. We're using SlimerJS and grunt-mocha-slimerjs for
58
58
testing. The Spec reporter (as set by default) do * not* log errors or stack
59
59
traces on failures. So if you want to see the errors (and believe me, you will)
60
60
then you need to specify the JSON reporter. The easiest way to do this is with:
61
61
62
- grunt test --testReporter=JSON
62
+ ```
63
+ grunt test --testReporter=JSON
64
+ ```
63
65
64
66
If you want to run only the test contained on test_name.js, execute:
65
67
66
- grunt test --testFile=name
68
+ ```
69
+ grunt test --testFile=name
70
+ ```
67
71
68
72
e.g. to run only the test in test_join_room.js:
69
73
70
- grunt test --testFile=join_room
74
+ ```
75
+ grunt test --testFile=join_room
76
+ ```
71
77
72
78
#### Grunt options
73
79
You can’t perform that action at this time.
0 commit comments