So, I've been looking all over for this, found "similar" answers here, but not exactly what I want.
Right now if I want to test a single file with karma, I need to do fit()
, fdescribe()
on the file in question...
However, what I do want is to be able to just call karma, with the config file, and direct it to a specific file, so I don't need to modify the file at all, ie:
karma run --conf karma.conf.js --file /path/to/specific/test_file.js
is it possible to do this? Or with any helper? (using grunt or gulp?)
karma run -- --grep=testDescriptionFilter
? I've seen this suggested before, but I can't verify first hand that it works. (If I were home, I'd try before suggesting. Since I can't try- I'm commenting instead of answering.) :) – Hoenirit
? No possibility of using it for a file? – Intradermalit
but... seeing as how describes can be nested, maybe it would work for an entire test? – Hoenir