specmatic icon indicating copy to clipboard operation
specmatic copied to clipboard

Complexity

Open joelrosario opened this issue 1 year ago • 0 comments

What:

Implement a complexity threshold when running generative tests, or any tests where there are no examples.

The complexity calculation currently estimates the number of tests that will run.

When the threshold is exceeded (currently a magic number of 500), MAX_TEST_REQUEST_COMBINATIONS is set to 5.

Why:

This will help people who are going to run too many tests to reduce the count of tests to a more manageable number.

Checklist:

  • [ ] Documentation added to the README.md OR link to PR on https://github.com/specmatic/specmatic-documentation
  • [x] Tests
  • [ ] Sonar Quality Gate

joelrosario avatar Feb 19 '24 13:02 joelrosario