doo
doo copied to clipboard
Ability to run test namespaces one by one
Hey there,
I use karma-chome-headless to perform integration tests. This is, I load the whole app and black-box test it, Selenium style.
My setup for this is a bit hacky but it works. Or it mostly does!
I have 3 existing test namespaces (that's my whole suite) that are fine. I implemented a 4th one, which only passes if doo-tests
only includes that test.
IOW:
(doo-tests 'a 'b 'c)
-> always works
(doo-tests 'd)
-> always works
(doo-tests 'a 'b 'c 'd)
-> never works
So, a/b/c are uncompatible with d.
Regardless of the exact cause of the error, which I don't want to bore you with, I'd just like a way that test namepaces are run "one by one", sequentially: one test, one karma execution.
That way one would guarantee that each test has a 100% clean/isolated state.
I realise that it might result in a slower suite, but I'm willing to take that cost.
Cheers - Victor