Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isolating executions of multiple tests across same model when using TestSuite.judge() #182

Open
appukuttan-shailesh opened this issue May 2, 2021 · 1 comment

Comments

@appukuttan-shailesh
Copy link
Contributor

appukuttan-shailesh commented May 2, 2021

I was taking a look at TestSuite, whereby users are able to specify a number of models and tests to be evaluated.
I have found on some occasions that the order in which these tests were executed affected the outcome. On closer inspection, this discrepancy was arising out of changes that a particular test was making on the model, which affected the "initial state" of the model for the other tests.

When running tests individually, using Test.judge(), I generally prefer to run each as a separate subprocess/fork. Do you think a similar (optional) feature would be useful for TestSuite where each judge() would be isolated in its own subproces, thereby not affecting the execution of other model-test pairs. Not sure if any pitfalls exist in doing so, or if this is already available.

@rgerkin
Copy link
Contributor

rgerkin commented May 2, 2021

That's a great idea. I will look into it.

TestSuite currently has hooks that can be executed after the completion of each test, which you could use to for example reset the value of some model attribute after a test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants