Git Product home page Git Product logo

medium-post-fragile-tests's Introduction

medium-post-fragile-tests

Description

This is example code which is a companion to the Medium article, Zrah, that describes an automated system that:

  • runs a suite of tests several times to reduce the effects of a fragile test system to find truly failing tests
  • suppresses the failing tests
  • creates a new commit and Github pull request that silences the failing test

Setting up

Fork this repo and run the following commands from a directory where you store your repos:

    git clone [email protected]:REPLACE-WITH-YOUR-GITHUB-USERNAME/medium-post-fragile-tests.git
    cd medium-post-fragile-tests
    git remote add lyndsey [email protected]:lyndsey-ferguson/medium-post-fragile-tests.git
    gem install bundler
    bundle install

Create a new Github token here and save it as ~/.github-token.

Run the sample code from the Terminal in this cloned repo:

    bundle exec fastlane sweep

Observe as the tests run with one consistently failing test. The fastlane sweep lane will run the tests 3 times, suppress the truly failing tests, make a new commit, and issue a pull request against the main repo.

Use this code sample to add improved logic to your build and test system. Feel free to ask questions or make comments in the Medium post or add Issues to this repo.

Thanks for reading and I hope that you enjoyed it!

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.