Metrics can be leveraged to improve end-to-end testing by externalizing the internal behavior of an application and asserting on the externalized information. This allows for more complex testing scenarios and better control over test scenarios.
- Metrics provide performance insights about an application
- Metrics allow for more detailed test assertions
- Metrics enable better control over test scenarios
- Metrics provide various extra data points about tests
- Different types of tests can be applied using metrics, including benchmark tests