dalek-reporter-json

    0.0.2 • Public • Published

    dalek-reporter-json

    DalekJS reporter plugin for JSON output

    Build Status Build Status Dependency Status devDependency Status NPM version Coverage unstable Stories in Ready Bitdeli Badge Built with Grunt

    NPM NPM

    Ressources

    API Docs - Trello - Code coverage - Code complexity - Contributing - User Docs - Homepage - Twitter

    Docs

    The JSON reporter can produce a file with the results of your testrun.

    The reporter can be installed with the following command:

    $ npm install dalek-reporter-json --save-dev
    

    The file will follow the following format. This is a first draft and will definitly change in future versions.

    {
      "tests": [
            {
              "id": "test806",
              "name": "Can get !url (OK, TDD style, message, chained)",
              "browser": "Chrome",
              "status": true,
              "passedAssertions": 1,
              "failedAssertions": 0,
              "actions": [
                  {
                      "value": "http://localhost:5000/index.html",
                      "type": "open",
                      "uuid": "6ea84fc0-58bf-4e1f-bb9c-f035c6e6fae2",
                      "kind": "action",
                      "isAction": true
                  },
                  {
                      "success": true,
                      "expected": "http://localhost:5000/guinea.html",
                      "value": "http://localhost:5000/index.html",
                      "message": "Url is not whatever",
                      "type": "url",
                      "kind": "assertion",
                      "isAssertion": true
                  }
              ]
          }
      ],
      "elapsedTime": {
          "minutes": 1,
          "seconds": 43.328535046
      },
      "status": true,
      "assertions": 1,
      "assertionsFailed": 0,
      "assertionsPassed": 1
    }

    By default the file will be written to report/dalek.json, you can change this by adding a config option to the your Dalekfile

    "json-reporter": {
      "dest": "your/folder/your_file.json"
    }

    Help Is Just A Click Away

    #dalekjs on FreeNode.net IRC

    Join the #daleksjs channel on FreeNode.net to ask questions and get help.

    Google Group Mailing List

    Get announcements for new releases, share your projects and ideas that are using DalekJS, and join in open-ended discussion that does not fit in to the Github issues list or StackOverflow Q&A.

    For help with syntax, specific questions on how to implement a feature using DalekJS, and other Q&A items, use StackOverflow.

    StackOverflow

    Ask questions about using DalekJS in specific scenarios, with specific features. For example, help with syntax, understanding how a feature works and how to override that feature, browser specific problems and so on.

    Questions on StackOverflow often turn in to blog posts or issues.

    Github Issues

    Report issues with DalekJS, submit pull requests to fix problems, or to create summarized and documented feature requests (preferably with pull requests that implement the feature).

    Please don't ask questions or seek help in the issues list. There are other, better channels for seeking assistance, like StackOverflow and the Google Groups mailing list.

    DalekJS

    Legal FooBar (MIT License)

    Copyright (c) 2013 Sebastian Golasch

    Distributed under MIT license

    Keywords

    Install

    npm i dalek-reporter-json

    Homepage

    dalekjs.com

    DownloadsWeekly Downloads

    0

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • asciidisco
    • wrumsby