Set up custom coldfront test runner to set fake seed and stress level. #727
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR includes a custom test runner for coldfront which is a subclass of the default
DiscoverRunner
. This custom test runner adds flags on the command line to specify the seed used for the random value generation with faker as well as an argument to give a stress level to the tests. This custom test runner will also generate and report each time the test suite is ran what the seed used for faker was regardless of whether or user specified it or not. This closes issue #721.The only concern with this is that even when specifying a seed manually, there might be an issue if tests are ever run in parallel that might cause inconsistencies.
Some things that might want to be modified:
If you like it as is then it should be ok to merge in.