GithubHelp home page GithubHelp logo

fixcik / mocha-json-output-reporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oconnorjoseph/mocha-spec-json-output-reporter

0.0 1.0 4.0 47 KB

mocha spec + json output file reporter

JavaScript 100.00%

mocha-json-output-reporter's Introduction

mocha-json-output-reporter

mocha json output file reporter

Install

npm install --save-dev mocha-json-output-reporter

Run with Mocha

mocha --reporter mocha-json-output-reporter

Output file

The default file output will be test-report.json in the current working directory

Reporter Options

  • output - specify exact name of output file
mocha --reporter mocha-json-output-reporter --reporter-options output=my-file.json

Example Output - Default Mode

{
  "stats": {
    "suites": 3,
    "tests": 9,
    "passes": 9,
    "pending": 0,
    "failures": 0,
    "start": "2021-07-15T20:06:25.845Z",
    "end": "2021-07-15T20:06:27.489Z",
    "duration": 1644
  },
  "tests": [
    {
      "title": "should success registration with granted access",
      "fullTitle": "account invitation behaviour account invitation behaviour with the enabled access-policy should success registration with granted access",
      "file": "/tests/account.spec.js",
      "duration": 235,
      "currentRetry": 0,
      "err": {}
    },
    {
      "title": "success:becomeMemberByInvitationCode",
      "fullTitle": "account invitation behaviour account invitation behaviour with the enabled access-policy success:becomeMemberByInvitationCode",
      "file": "/tests/account.spec.js",
      "duration": 63,
      "currentRetry": 0,
      "err": {}
    },
    {
      "title": "failed:becomeMemberByInvitationCode:invalidInviteToken:wrongUser ",
      "fullTitle": "account invitation behaviour account invitation behaviour with the enabled access-policy failed:becomeMemberByInvitationCode:invalidInviteToken:wrongUser ",
      "file": "/tests/account.spec.js",
      "duration": 18,
      "currentRetry": 0,
      "err": {}
    }
  ]
}

mocha-json-output-reporter's People

Contributors

vchin avatar fixcik avatar zbitname avatar csimi avatar

Watchers

James Cloos 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.