xp-framework / unittest

Unittests for the XP Framework
0 stars 0 forks source link

Reason why #[Before] fails undiscoverable #48

Closed thekid closed 1 year ago

thekid commented 1 year ago

In the following example, the complete test suite cannot be rund because connecting to mongodb://[::1] fails.

image

However, the test suite does not show any error, and even exits with status code 0. When #[Before]-methods fail with a prerequisite not being met, this is OK, but when another unexpected error occurs, we should see its cause somewhere. Currently the only way is to add a try-catch-block to the method and print the stack trace manually.

thekid commented 1 year ago

Implementation released in https://github.com/xp-framework/unittest/releases/tag/v11.4.0