>I have added 3 test cases which runs fine but ...
# tornadofx
h
I have added 3 test cases which runs fine but the problem is they use the previous stage rather than creating a new one. I want the testcases to run independently.
TestFX reuses the existing
Stage
to make setup and cleanup of them more economically to the test writer. For every testcase TestFX creates a new
Scene
and replaces the old
Scene
in the existing
Stage
, i.e. the
Stage
is reused and `Scene`s (in this
Stage
) are replaced. This further means tests run independendly
Scene
-wise, but not
Stage
-wise (which is an OK-ish property).