jasmine-markdown-reporter

1.0.1 • Public • Published

Jasmine Markdown Reporter

Generates jasmine test report as a single document that can live in your project. Uses Github-flavored markdown.

Quickstart

npm install jasmine-markdown-reporter --save-dev
const path = require('path')
const MarkdownReporter = require('jasmine-markdown-reporter')

global.jasmine.getEnv().clearReporters()
// add other reporters

global.jasmine.getEnv().addReporter(new MarkdownReporter({
  title: 'Jasmine Test Results',
  destination: path.join(process.cwd(), 'spec.md'),
  // mode: 'markdown' // 'html' or 'markdown'
}))

and then run

jasmine

produces a report spec.md on your project root directory which looks something like this

Jasmine Markdown Reporter

Passing Tests

look like this

Passing Test

Test Summary

looks like this

Summary

/jasmine-markdown-reporter/

    Package Sidebar

    Install

    npm i jasmine-markdown-reporter

    Weekly Downloads

    17

    Version

    1.0.1

    License

    Apache-2.0

    Unpacked Size

    1.35 MB

    Total Files

    12

    Last publish

    Collaborators

    • binod