0.1.0 • Published 8 years ago

karma-markdown-reporter v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

karma-markdown-reporter

A karma plugin for creating a markdown file with test results

This is a plugin for the Karma Test Runner. It was created from karma-htmlfile-reporter by maththias-shchuetz.

Sample output:

## 1/4 Tests Failed!

* App: AngularCliStarter
  * _193 ms - should create the app_
  * _76 ms - should have as title 'app works!'_
  * _66 ms - should render title in a h1 tag_
  * **FAILED** _66 ms - should render SharedComponent in a h2 tag_

It's in the very early stages. Eventually I hope to use the karma config and let you create possibly multiple files. A small markdown file could be included in the git commit showing the last tests that were run and the results, maybe with just the test counts and maybe any failures.

I would also like to include the time the tests were run and total duration. Possibly also the git branch and latest commit hash of the repository if the tests are run in a git working folder.