Skip to content

Randomize order of test execution by make runtest#367

Merged
jeffdonahue merged 2 commits intoBVLC:devfrom
shelhamer:randomize-test-order
Apr 26, 2014
Merged

Randomize order of test execution by make runtest#367
jeffdonahue merged 2 commits intoBVLC:devfrom
shelhamer:randomize-test-order

Conversation

@shelhamer
Copy link
Member

Unit tests shouldn't depend on order of execution for correctness.

The gtest flag --gtest_shuffle randomizes the order of test execution by seeding from the current time, and this seeded is reported at the top of test output for reproducing failures.

make runtest now randomizes by default.

Note: this most likely shouldn't be instantly merged. Instead, you should try this out and fix any order-dependent tests you uncover. I have yet to find any others than #264.

jeffdonahue added a commit that referenced this pull request Apr 26, 2014
Randomize order of test execution by `make runtest`
@jeffdonahue jeffdonahue merged commit 72b11e7 into BVLC:dev Apr 26, 2014
@jeffdonahue
Copy link
Contributor

Thanks Evan! I ran the shuffled tests 5-10 times and didn't find any bugs other than the dropout gradient one you fixed.

@shelhamer shelhamer mentioned this pull request May 20, 2014
@shelhamer shelhamer deleted the randomize-test-order branch June 25, 2014 21:54
mitmul pushed a commit to mitmul/caffe that referenced this pull request Sep 30, 2014
Randomize order of test execution by `make runtest`
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

Successfully merging this pull request may close these issues.

2 participants

Comments