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

Parallelized test execution #71

Open
emil-e opened this issue Sep 25, 2015 · 4 comments
Open

Parallelized test execution #71

emil-e opened this issue Sep 25, 2015 · 4 comments

Comments

@emil-e
Copy link
Owner

emil-e commented Sep 25, 2015

Assuming there are no globals, you can most likely run multiple test cases in parallel. Also useful when searching for shrinks... gotta be a lot faster?

@fire
Copy link

fire commented Oct 6, 2015

I notice there is a patch in the queue. Has progress been delayed?

@emil-e
Copy link
Owner Author

emil-e commented Oct 6, 2015

That patch is for race condition testing, not for increasing test case throughput.

It's a work in progress but it's not an effort by me personally so I can't speak on the time frame.

@furuholm
Copy link
Contributor

furuholm commented Oct 6, 2015

@fire: The race condition testing should be feature complete, but I need to finish writing the documentation first, and some more tests are needed as well. Been away for a couple of weeks but I hope I will be able to work on this the comming weeks.

If you want to try it out you can use this example as a starting point: https://gist.github.com/furuholm/aac7f1d2d6fc6500118b.

You need to change two things to run parallel tests:

  1. Change your Commands to use the overload of the run function that looks like this std::function<void(const ModelT&)> run(Sut &sut) const
  2. Use rc::state::checkParallel instead of rc::state::check

@fire
Copy link

fire commented Oct 11, 2015

Sorry, I was busy and was not able to try.

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

No branches or pull requests

3 participants