Giter Club home page Giter Club logo

retryable's People

Contributors

kanecheshire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

retryable's Issues

Does not work with non-parallel tests + Fastlane

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;

Add XCTExpectFailure

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.

Untitled

Xcode 11 combines test suite reports with the same name

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.