Skip to content

Conversation

darclander
Copy link

As mentioned in our meeting we had a solution for rerunning tests until they were complete. This version should allow you to do that.

NOTE: It is important that env.json is present in the specs folder (in the ystack repo, not the one in kubernetes-assert).
It should contain: {"RERUN_TIME": "0"}.

RERUN_TIME: 0 | Will run tests until they are complete / have passed with a default rerun time of 10 seconds.
RERUN_TIME: != 0 | Will run tests continuously with the rerun time set as the value to the key in the json.

Without a json file it "should" work and the rerun time should be defaulted to 0.

@solsson solsson mentioned this pull request May 10, 2021
solsson added a commit to Yolean/ystack that referenced this pull request May 10, 2021
@solsson
Copy link
Contributor

solsson commented May 10, 2021

With RERUN=0 in env.json and specs running with skaffold dev I would expect failed specs to re-run without local file changes.

See the example https://github.com/Yolean/ystack/compare/kubernetes-assert-example-specs?expand=1

@solsson solsson changed the base branch from master to assert-devloop-improvements May 11, 2021 12:19
solsson added a commit that referenced this pull request May 11, 2021
so let's look for alternative appoaches, starting with #26
solsson added a commit to Yolean/ystack that referenced this pull request May 11, 2021
@solsson
Copy link
Contributor

solsson commented May 11, 2021

Confirmed that "RERUN_TIME": "0" reruns only failed specs (after 10 s or so). One todo before merge:

  • [ ] The runner should explain what decision it takes after each run.

solsson added a commit that referenced this pull request May 19, 2021
@solsson solsson merged commit 73060fa into assert-devloop-improvements May 25, 2021
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.

3 participants