kanecheshire / retryable Goto Github PK
View Code? Open in Web Editor NEWA library for automatically retrying flaky iOS automation/ui tests.
License: MIT License
A library for automatically retrying flaky iOS automation/ui tests.
License: MIT License
Super easy to fix but worth mentioning that Xcode 11 will try to be a bit smarter, and any suite reports that have the same name will be combined into one section in the Xcode Report navigator.
Example, if you have two test cases that both have one retried test each, Retryable would create two suites called "Retrying 1 failed test". Xcode 10 would display these as two separate sections in the report, Xcode 11 shows them as one section, with two failures, but the name says just "1 failed test".
Could be fixed by adding a UUID to each suite name or somehow creating a name derived from the failed test case's names.
If I might suggest something to this incredible approach to tests (can't thank you enough) is that tests that are marked as flaky are expected to fail.
Something like this:
open func flaky(_ flakiness: Reliability.Flakiness, _ tests: () -> Void) {
reliability = .flaky(flakiness)
XCTExpectFailure("This is a flaky test", options: .nonStrict(), failingBlock: tests)
reliability = .reliable
}
This will improve test reporting, since if it's an expected failure, it won't show up as a failure in the navigator.
Non-parallel test runs incorrectly report captured flakes as failures, probably because Fastlane itself fails the run rather than Xcode.
Current workaround is to run tests in parallel since Fastlane doesn't see flakes as failures that way;
This would allow people to use Retryable with other libs that require subclassing a test case to work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.