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

Parallel repeats and protection from infinite crash loop #3

Merged
merged 2 commits into from
Apr 14, 2020

Conversation

RainNapper
Copy link
Collaborator

Cherry-picked changes from these two PRs.
MobileNativeFoundation#432
MobileNativeFoundation#431

if (self.config.cloneSimulator) {
self.testHostForSimUDID = [bpSimulator createSimulatorAndInstallAppWithBundles:xcTestFiles];
if ([self.testHostForSimUDID count] == 0) {
return 1;
}
}

int repeatTestsCount = [self.config.repeatTestsCount intValue];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this PR add repeat test count 2x?

Copy link
Collaborator Author

@RainNapper RainNapper Apr 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you're right. I think it was a bad merge. Updating.

…ow repeats to run in parallel when there are few tests
Also log when retry count exceeded max retries
@jerrymarino
Copy link
Owner

LGTM!

@jerrymarino jerrymarino merged commit 7164642 into jerrymarino:pinterest-11.2.1 Apr 14, 2020
@jerrymarino
Copy link
Owner

@RainNapper is there any test coverage for this PR? I think it's going to end up running the same test over and over even if it didn't fail

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