jhalterman / concurrentunit

Toolkit for testing multi-threaded and asynchronous applications
Apache License 2.0
420 stars 45 forks source link

Capture assertions failures without waiting #27

Open jhalterman opened 3 years ago

jhalterman commented 3 years ago

In some use cases, it would be nice to be able to capturing assertion failures to report later without necessarily waiting on anything. Ex:

runInThread() -> {
  waiter.assertTrue(false);
});

waiter.reportFailures();