0.1.12 • Published 6 years ago

mocha-test-runner-polymer v0.1.12

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

mocha-test-runner

Published on webcomponents.org npm version

A custom element for running mocha tests

How it works:

  • attaches events to local existing mocha instance
  • does not rely on the html reporter (unless you wish to do so)
  • uses events to communicate its state as well as the attributes running, and failed

  • Demo

  • API Docs
<html>
<head>
  <title>My test suite</title>
  <link rel="import" href="path/to/mocha-test/mocha-test-runner.html">
</head>
<body>
  <mocha-test-runner></mocha-test-runner>
</body>
</html>

Install

Install with either NPM or Bower:

npm install mocha-test-runner-polymer --save-dev
bower install sebs/mocha-test-runner --save-dev

Usage

Use webcomponentsjs to polyfill the web component APIs in incompatible browsers. Then use the <mocha-test> tag.

By default mocha-test assumes it is running within node_modules or bower_components and will find mocha in sibling folders.

ui

This attribute lets you control which user-interface is used. Either bdd, tdd or exports are valid options. bdd is the default.

<mocha-test-runner ui="tdd">...</mocha-test-runner>

License

MIT

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago