weavejester / eftest

Fast and pretty Clojure test runner
424 stars 40 forks source link

nondeterministic execution order of tests #55

Open johanatan opened 6 years ago

johanatan commented 6 years ago

Between separate runs of my tests, I'm seeing them execute in a different order although the default execution order for JUnit is purported to be "deterministic but not predictable". Any way to get eftest to behave the same way?

weavejester commented 6 years ago

Have you set the :multithread? option to false?

johanatan commented 6 years ago

Yes

weavejester commented 6 years ago

I've looked through the code, and the vars and namespaces are tested in the order they're found. If we want a deterministic ordering, we probably want to perform a sort when multithreading is off.

johanatan commented 6 years ago

That would be great.