--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jasmine-js+...@googlegroups.com.
To post to this group, send email to jasmi...@googlegroups.com.
Visit this group at http://groups.google.com/group/jasmine-js.
For more options, visit https://groups.google.com/d/optout.
I believe you are looking for 'fit' and 'fdescribe.' They will focus Jasmine on a given spec/ suite.
On Monday, March 30, 2015, Jason Hihn <jaso...@gmail.com> wrote:
In Test Driven Development, you write the tests first.--And since I am writing code for node.js, I would like to write the backend function (without the route handler) and test it. I was hoping then that I could use jasmine to be an archive of these functions. However, I wish only to run a specific function (test) at a time.given:describe("A" function () { it("test1", function ()...)} )};if I could run `jasmine A/test1` then that would be awesome because I could use the test harness as part of my development process. The only thing we would be missing is the req, resp and variable marshaling, which is pretty trivial. We could then get that via a actual HTTP request, but for engineering purposes I'm not conserned.So is there a way to, given a complete test suite, invoke only a specific test? I know about xdescribe() and xit(), but I don't want to have to modify the test suite to test a specific function.Thanks
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jasmine-js+unsubscribe@googlegroups.com.
You can use iit() for specific test and ddescribe() for specific test suite