Giter VIP home page Giter VIP logo

xcresultviewer's Introduction

xcresultviewer

A simple command line utility to convert .xcresults to a web page to understand what failed or how to optimize parallel UI tests.

NOTE: In previous versions you would run with ./xcresultviewer, now you run with ./xcrv which is much easier to type.

Overview

When UI tests randomly fail on CI it can be really hard to trace back what happened to cause it.

By default, xcresultviewer takes an .xcresult bundle and converts it into a web page so you can see the activities and screenshots and easily follow the flow the app took before the test failed.

xcresultviewer can also analyze an xcresult bundle to help you optimize your parallel UI tests.

Usage

General usage

  • Download the latest release
  • In Terminal, navigate to where the utility is located
  • Run ./xcrv <options> '<path to an .xcresult bundle (usually located in derived data)>'

Watch out for spaces in the path name.

Just viewing failures

To simply view any failures as a web page in an xcresult you can just pass a path to an xcresult bundle without any options:

./xcrv '<path to an .xcresult bundle>'

xcresultviewer only shows tests that failed and matches up automatic screenshots with activities so you can follow the flow (in reverse).

Skipping opening a browser

If you don't want xcresultviewer to automatically open a browser after generating the html page, pass the -s flag:

./xcrv -s '<path to an .xcresult bundle>'

or

./xcrv --skip-open-browser '<path to an .xcresult bundle>'

Analyzing xcresults to optimize parallel tests

If you're more interested in learning how to optimize and speed up your parallel tests you can pass the -a flag instead:

./xcrv -a '<path to an .xcresult bundle>'

or

./xcrv --analyze '<path to an .xcresult bundle>'

Suggestions?

xcresultviewer is in early prototype stage so I welcome suggestions and contributions!

xcresultviewer's People

Contributors

kanecheshire avatar

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.