I am using TestCafe to test our Electron app and need a way to know when the last test in a fixture has been executed BUT before TestCafe shuts our app down.
The standard hooks (fixture.after, fixture.afterEach) won't work. In particular, fixture.after won't work as it is called BETWEEN test runs (the test app will have been shutdown) and I need my app to still be around.
If I can get the number of tests active for this test run in the fixture I can count the runs myself and then call my custom code on the last test. If there is another way to do this that would be appreciated as well.
Any insights appreciated, m
Aucun commentaire:
Enregistrer un commentaire