kaocha icon indicating copy to clipboard operation
kaocha copied to clipboard

Suggestion: Run reloaded tests first

Open magnars opened this issue 5 years ago • 1 comments

[watch] Reloading #{norled.vessel.c4.refiners.scheduled-route-test}
[(.....................................................................................................................)(.)(.........)(.)(.)(.)()()(.)(.)(................)(...)(.)(.)(.)(.)(...........)(.)(.)(..............)(.)(.)(.)(..........)(......)(.........................................................................................)(.)(.)(............................................................................................................................................................................................................................................................................)(....)(.)(......)(........)(...........................)(...................................)(.)(................................)(.........)(..............................................................................)(.)(.)(.)(.)(..)()(..................)(....)(.....)(.....................................................................)(.............)(.)(........)(...........................................................................)(..)(.)(........)(.)(............................)(..)(...)(.)(..)(....)()(.)(...........................................................)(.............)(..)(.....)(.)(.)(.)(.)(.)(.)(.....)(.................)(.)(.)(.)(..)(.....)(.)(....)(.)(E)(.)(.)(.)(.)(.)(.)(.....)(..)(.)(.....)(.................)(...)(..............................................)(..)(.......)(.......)(..................................................................................)(...)(...)(.......................................)]
341 tests, 1365 assertions, 1 errors, 0 failures.

When watch reloads test namespaces, it would be nice if it ran those tests first. This would enable a faster workflow.

magnars avatar Apr 15 '19 07:04 magnars

In a similar vein, so I'll mention it here: I'm curious if there is an option for watch mode to only run tests affected by changed namespaces? This is the behavior for Midje's test runner (in autotest mode) and many of my colleagues are looking for a replacement now that we are considering a clojure.test based testing setup.

EDIT: many of my colleagues are big fans of the REPL-based (autotest) command the Midje has. So tackling the problem I mentioned above in a way that scales to kaocha's REPL support would be :100:

philomates avatar Apr 25 '19 07:04 philomates