views:

66

answers:

1

What is the equivalent of nUnits [SetUp] attribute for qUnit?

+1  A: 

QUnit.testStart(name) is called whenever a new test batch of assertions starts running. name is the string name of the test batch.

See the documentation for more info.

GraemeF
Yes, I saw this but it isn't obvious as to how it should be used or what it should be used for. Now I know, thanks!
tpower
In case you don't know how to use this `QUnit.testStart = function (name) {};`
Juri Glass