Giter Site home page Giter Site logo

wdio-testname-reporter's Introduction

wdio-testname-reporter

Webdriver.io reporter that prints the current test name and result to the console instead of just the test suite name. When running longer spec files, it is nice to see which test is currently running so you can gauge how far through the suite you have got.

Without plugin

Execution of 1 spec files started at 2020-02-27T03:08:38.717Z

[0-0] RUNNING in chrome - test1.spec.js
[0-0] Error in "Test Suite 1 should fail"
Expected 'Example Domain' to be undefined.
[0-0] FAILED in chrome - test1.spec.js

Spec Files:      0 passed, 1 failed, 1 total (100% completed) in 00:00:03

With plugin

Execution of 1 spec files started at 2020-02-27T03:07:30.486Z

[0-0] RUNNING in chrome - test1.spec.js
[0-0] RUNNING TEST in chrome - Test Suite 1 should pass
[0-0] PASSED TEST in chrome - Test Suite 1 should pass
[0-0] RUNNING TEST in chrome - Test Suite 1 should fail
[0-0] Error in "Test Suite 1 should fail"
Expected 'Example Domain' to be undefined.
[0-0] FAILED TEST in chrome - Test Suite 1 should fail
RUNNING TEST in chrome - Test Suite 1 should skip
[0-0] SKIPPED TEST in chrome - Test Suite 1 should skip
[0-0] FAILED in chrome - test1.spec.js

Spec Files:      0 passed, 1 failed, 1 total (100% completed) in 00:00:04

Installation

npm install wdio-testname-reporter --save-dev

or

yarn add wdio-testname-reporter --dev

Configuration

Add the reporter to your wdio.conf

reporters: ['testname'],

or if you want to turn off specific notifications, add with options (all are optional and default to true)

reporters: [['testname', {
    Starting: true,
    Passed: true,
    Failed: true,
    Skipped: true,
}]],

wdio-testname-reporter's People

Contributors

justsittinhere avatar

Watchers

 avatar

wdio-testname-reporter's Issues

Add options to customise the output

Allow reporter phases to be toggled on and off by specifying in the config.

Example:
Do not report on tests starting, but still report on the outcome of the test.

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.