Mastercard / flow

Testing framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coverage limits in tests

therealryan opened this issue · comments

Related to #233, it'd be good to add an API to the assertion components that allows users to specify a coverage score for a test. The assertion components can compare full and asserted messages, compute a coverage score and assert that it meets the configured limit.

This will make changes to test coverage more explicit in code diffs.

There some thoughtful API work needed here - you might want to set different coverage limits for different messages.