-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to run test namespaces one by one #154
Comments
Hi @vemv, Can you please check if there is anything in Karma that would help us get that behavior? |
I will! In any case, the suggested strategy seems rather universal (karma-agnostic). Pseudo code. Instead of
one would do
My point is, this might be achievable regardless of what Karma may have. I realise my request may be a bit whimsical, but who knows, maybe for the maintainers this would be super easy to implement. Ultimately I can give it a shot. A related missing feature in doo, and a less strange one, is that one cannot run just one file (testing namespace), right? If I want to run just one testing namespace (why? focus, performance, debugging), I have to comment out the rest, which is tedious. Cheers - Victor |
here is a concrete e2e_test.clj example analogous to what i surmise the issue is about: there are several the proliferation of
indeed, the desired behavior for my use-case (although not so high priority) would be an opt to that way, there'd a single (doo-tests
'emcg.act-test
'emcg.add-mcg-res-test
) rather than a separate perhaps idk if this description is what's meant by the above pseudocode. hopefully it can serve as a point of departure for clarifying what the issue at stake actually is. also, it occurs to me that the desired behavior described here may well be possible with the current |
@ransomw cool code! I never thought of calling cljs/build and doo from clojure as part of the test suite. However we are talking about different things. I was talking about test namespaces rather than individual tests. I originally reported the issue talking about 'tests' (not test namespaces) which I reckon was confusing. Sorry. My need, in short is that the Karma .html page is loaded from scratch for each testing namespace (which of course can contain N Looking at @ransomw's example again, maybe I can repeatedly pass Cheers - Victor |
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 worksSo, 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
The text was updated successfully, but these errors were encountered: