Tensegritics / ClojureDart

Clojure dialect for Flutter and Dart
1.44k stars 91 forks source link

`use-fixtures :each` doesn't seem to work #242

Closed valerauko closed 1 year ago

valerauko commented 1 year ago

In a test namespace when I try to use (at the top level of the namespace, outside of any deftest or testing) (use-fixtures :each reset-state) where reset-state is a function defined in the same ns, I get an error saying Can't call setUpAll() once tests have begun running.

use-fixtures :once works just fine.

valerauko commented 1 year ago

I think I know what's the issue here so I'll put up a PR to fix if that's all right

dupuchba commented 1 year ago

maybe we can close this one right @valerauko ?

valerauko commented 1 year ago

@dupuchba definitely! The pr is already marked to close this issue when merged.

I've adjusted tests as you suggested. Is there anything else?