-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Randomized testing #1588
Randomized testing #1588
Conversation
I will do the same for the examples to speed up the CI bots. |
Ideas for the whitelist (to force some tests):
|
nice idea to reduce time, and the random select could be a good compromise instead selecting all tests impacted by a commit. |
|
Yes, I meant that in dgtal, Travis also builds the entire dgtaltools for a given dgtal commit (to make sure that the commit does not break up dgtaltools). |
yes agree to also doing it in the tools! |
Great 👍 |
nice the example will looks simple to transpose in the tools, and me know to test or help |
Randomized testing enabled in appveyor as well (not the whitelist that would require a shell command) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great! I try to apply the same for DGtalTools, perhaps I will have some other comment else I will approve ;)
@@ -4,7 +4,7 @@ $SCRIPT_BEGIN | |||
# OS dependent deps | |||
source "$SRC_DIR/.travis/install_eigen.sh" | |||
|
|||
BTYPE="$BTYPE -DBUILD_EXAMPLES=true -DBUILD_TESTING=false" | |||
BTYPE="$BTYPE -DBUILD_EXAMPLES=false -DBUILD_TESTING=false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did it impact the auto main doxygen generation for including examples like these page: https://dgtal-team.github.io/doc-nightly/examples.html ?
@dcoeurjo looks fine for me, perfectly works on my computer. I also do same for DGtalTools here: DGtal-team/DGtalTools#416 and do a related PR to your branch: dcoeurjo#30 |
Thx @kerautret |
PR Description
Add an option to cmake to only run and test a random selection of unit-tests (e.g. only 30% of them). Each time
cmake
is run, a new random selection is performed.This may speed up CI bots since all PR have many commits involved (and the probability of missing an important test decreases with the number of commits;))
TODO:
force a full testcmake .. -DTHRESHOLD_RANDOM_TESTING=100
when merging a PRChecklist
cmake
mode (otherwise, Travis C.I. will fail).