Closed brase closed 3 years ago
Used the workaround with the additional test at the end but had to change it to sequenced. (source: https://github.com/haf/expecto/issues/352#issuecomment-541075223)
Is there any other option?
There are many ways to model it, but I'd make it two testLists with the outer one setting up and tearing down and being sequenced, the the middle test being an inner testList with all your tests. This is probably the easiest version.
You can also program with standard parallel/concurrent programming primitives, such as countdown latch and lazy and such, counting down each test once it fails/succeeds and when the latch reaches zero, killing the database.
Thank you!
There are many ways to model it, but I'd make it two testLists with the outer one setting up and tearing down and being sequenced, the the middle test being an inner testList with all your tests. This is probably the easiest version.
Will the inner tests then run parallel or sequenced?
In parallel
Thank you!
Hi,
I need a teardown function called after all tests of a testfixture or a testlist finished. I tried to use a disposable but I have no idea where to put it. Am I doing something wrong or is there no chance to achieve something like this?
Here is my example code: