doc / ch.tutteli.atrium.domain.builders.creating.collectors / ExplainingAssertionCollectorOption / doNotThrowIfNoAssertionIsCollected

doNotThrowIfNoAssertionIsCollected

inline val doNotThrowIfNoAssertionIsCollected: NonThrowingAssertionCollectorForExplanation (source)

Choosing this option will ignore use cases where not a single Assertion was collected.

Use throwIfNoAssertionIsCollected if you want that AssertionCollector throws an IllegalArgumentException in such cases.