Getting an error while writing a unit test for pages

Hello MicroEJ Team,
I am facing the below issue while running the unit test for pages.

WARNING: [W4] - At least one test has failed to pass: 1 tests have gone wrong.

At least one test has failed to pass:
1 tests have gone wrong.
java.lang.AssertionError: At least one test has failed to pass:
1 tests have gone wrong.
at com.microej.testengine.MicroejTestEngine.execute(MicroejTestEngine.java:243)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)

I have also attached the test suite report which shows the error.

  1. Report ended before the test suite start
    image
  2. Report says test passed but still getting failure message.
  3. Report ended before the test suite end
    image

Hi @shuhabazhar,

It seems you are running the tests on the simulator.
The current behavior of our test engine is to wait for the application to stop (meaning all non-daemon threads have terminated their execution or call to System.exit()).
If this does not happen before the test engine timeout, the tests are considered failed (despite all the executed tests passed).

We have an internal ticket to improve this.
Meanwhile, add a cleanup in your tests or ignore the failure (see ignoreFailures) (and check the report content to verify the tests passed).

Best regards,
Rémy