How To Run A Single E2e Test With Testacular?
Testacular is really nice test runner and I like it very much. Running my unit test I noticed that the test is run is the test that the cursor is on but, that is not the case with
Solution 1:
To isolate a test you can use a simple trick - add "d" to describe, or i to "it".
For example:
describe("Should not run", function(){
...
});
ddescribe("Should run...", function(){
...
});
The same goes for:
describe("Will run", function(){
it("should not run...", function(){
});
iit("should run...", function(){
});
});
If you have multiple "ddescribe" or "iit" they will all run and the other regular "describe" or "it" won't.
Hope it helps...
Solution 2:
There is a good explanation on using Testacular at the tutorial. The test sample is specifically at Chapter 2.
Also, take a look at the AngularJS docs.
Post a Comment for "How To Run A Single E2e Test With Testacular?"