Open Strix-CZ opened 11 years ago
I've found this need today too, although not exactly as you describe. I have a suite that tests a rest service, but I need to run the suite on multiple different endpoints. The main difference from what the reporter suggests is that I also need the setups/teardowns and nested groups to be correctly processed.
FYI. I've added a PR to https://github.com/Twipped/nodeunit-dataprovider/pull/2 to allow for named sets of data (similar to how you can in PHPUnit). Makes things a lot easier to see when set number 523 is having an issue.
Hello, I have found TestNG's ability to run single test case with multiple data to be very useful. In TestNG it's called DataProvider. I have implemented similar functionality with this global function:
You can use this function in this way:
It works fine, but I am wondering if it is possible to get rid of the global function and integrate this functionality directly in nodeunit in some smart way.