You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a situation, where we need to perform an asynchronous operation to fetch data and generate tests for each of the data. Any thoughts?
consttests=asyncGetDataFromDB();describe('generate tests dynamically',function(){tests.forEach(function(test){it(test.desc,asyncfunction(){// make assertions});});});
The text was updated successfully, but these errors were encountered:
sairamnutheti
changed the title
Dynamically generate tests
Dynamically generating tests
Mar 21, 2018
In mochajs generally, it is possible to utilize the delay / run technique mentioned at the bottom of this issue discussion: mochajs/mocha#1483 (comment)
I can imagine how it's possible to enable this technique in nemo.
Another possibility would be to dynamically generate suite file(s) and point the mocha config towards the file(s) prior to running.
The second alternative could be accomplished more quickly due to it having fewer moving parts within nemo.
We have a situation, where we need to perform an asynchronous operation to fetch data and generate tests for each of the data. Any thoughts?
The text was updated successfully, but these errors were encountered: