Closed lmartins closed 11 years ago
xname
is exactly made for these kind of quick changes though. If I make targeting one test specific then it adds an api overhead while overlapping with the functionality of running only two or three tests.
The reason I separated the tests this way in the examples is for grouping logically similar tests together (ok, it might not show too well...), so that you can exactly avoid targeting individual tests by turning a switch on and off, and target individual huxleyfiles instead. Or else the examples would only contain one huxleyfile with all the tests lumped together and controlled by xname
(not ideal).
So based on this, I'll close the issue for now. It's a valid suggestion; one that I have considered before. My rule of thumb is that if the whole api doesn't fit in a README then Huxley would be no better than the other unit testing tools =).
I see your point and im glad that someone so considerate is running the project. Thank you for that and for the detailed explanation.
(Super late notice) The people have spoken! nameOnly
(akin to describe.only in jasmine) is implemented for this exact use case.
Would be nice to have the possibility to just run a specific test, without having to resort to changing
name
toxname
in the json file.Thanks.