{"maintainers":[{"name":"iso25","email":"0xdead10cc@gmx.de"},{"name":"iso50","email":"0xdead10cc@gmx.de"},{"name":"nikku","email":"git_nikku@nixis.de"}],"dist-tags":{"latest":"0.2.0"},"author":{"name":"Joerg Dotzki"},"description":"An extension for Mocha that provides test container support.","readme":"# mocha-test-container-support\n\nThis [Mocha](https://github.com/mochajs/mocha) plugin provides test\nhooks for Mocha that add a container for every test case.\nThe plugin is inspired by [jasmine-test-container-support](https://github.com/bpmn-io/jasmine-test-container-support) by [Nico Rehwaldt](https://github.com/nikku).\n\n\n## Install\n\n```bash\nnpm install --save-dev mocha-test-container-support\n```\n\n\n## Features\n\n* Add one test container for every test to the DOM\n* Allows checking the result of your test code visually while TDD\n* Full title (suite + test) is displayed for every test case\n* Test result is indicated by color and text\n* Tests are marked with an anchor element for navigation purposes\n\n### Limits of the plugin\n\n* __No__ 'real' encapsulation of your tests\n  * CSS / JS / DOM changes can still break other tests\n  * Make sure tests use the test container as DOM root otherwise your DOM is not rendered in the container\n  * Test is only rendered into a `<div>`, no `<iframe>` or shadow DOM\n\n\n## Usage\n\nTo get container support for all tests just add a test file to the test root containing the following:\n\n```js\nvar TestContainer = require('mocha-test-container-support');\nvar testContentContainer;\n\nbeforeEach(function() {\n  testContentContainer = TestContainer.get(this);\n});\n```\n\nThe created test container will have this structure:\n\n```html\n<div class=\"test-container passed\" id=\"254\">\n  <div class=\"title-row\">\n    <a href=\"#254\">\n      <h3 class=\"test-titel\">testsuite - feature should do</h3>\n    </a>\n    <div class=\"test-result\">passed</div>\n  </div>\n  <div class=\"test-content-container\">\n    Your content will be added here.\n  </div>\n</div>\n```\n\nThe `get()` function returns an instance of the test content container. That's where custom test related DOM content should be added.\n\n```js\nvar testContentContainer = TestContainer.get(this);\n\ntestContentContainer.appendChild(yourDomContent);\n```\n\n\n## License\n\nMIT\n\n\n## History\n\n* v0.2.0 - Core Refactoring, bug fixes\n* v0.1.0 - Changed API\n  * Need to explicit call TestContainer.get(this) to create a container for the test\n  * Use links based on test name\n* v0.0.1 - Initial release, test container\n","repository":{"type":"git","url":"git+https://github.com/ISO50/mocha-test-container-support.git"},"users":{},"bugs":{"url":"https://github.com/ISO50/mocha-test-container-support/issues"},"license":"MIT","versions":{"0.0.1":{"name":"mocha-test-container-support","version":"0.0.1","description":"An extension for Mocha that provides test container support.","author":{"name":"Joerg Dotzki"},"license":"MIT","repository":{"type":"git","url":"https://github.com/ISO50/mocha-test-container-support.git"},"devDependencies":{"chai":"~2.2.0","grunt":"~0.4.4","grunt-karma":"^0.8.0","grunt-release":"^0.7.0","grunt-contrib-jshint":"^0.11.1","karma":"^0.12.8","karma-chai":"^0.1.0","karma-chrome-launcher":"^0.1.2","karma-mocha":"~0.1.10","karma-phantomjs-launcher":"^0.1.2","load-grunt-tasks":"^0.3.0"},"gitHead":"3e3dac251e7c1357dea449ea8b7eded3af2f69e1","bugs":{"url":"https://github.com/ISO50/mocha-test-container-support/issues"},"homepage":"https://github.com/ISO50/mocha-test-container-support","_id":"mocha-test-container-support@0.0.1","scripts":{},"_shasum":"3bcdb935094ff9c226cbb915f9d7fb2553b7ca5a","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"iso25","email":"0xdead10cc@gmx.de"},"maintainers":[{"name":"iso25","email":"0xdead10cc@gmx.de"},{"name":"iso50","email":"0xdead10cc@gmx.de"},{"name":"nikku","email":"git_nikku@nixis.de"}],"dist":{"shasum":"3bcdb935094ff9c226cbb915f9d7fb2553b7ca5a","size":4478,"noattachment":false,"tarball":"http://tools.bpmhome.cn:8082/nexus/repository/npm-lc/mocha-test-container-support/-/mocha-test-container-support-0.0.1.tgz"},"directories":{},"publish_time":1428236798044,"_cnpm_publish_time":1428236798044,"_hasShrinkwrap":false},"0.1.0":{"name":"mocha-test-container-support","version":"0.1.0","description":"An extension for Mocha that provides test container support.","author":{"name":"Joerg Dotzki"},"license":"MIT","repository":{"type":"git","url":"https://github.com/ISO50/mocha-test-container-support.git"},"devDependencies":{"chai":"~2.2.0","grunt":"~0.4.4","grunt-karma":"^0.8.0","grunt-release":"^0.7.0","grunt-contrib-jshint":"^0.11.1","karma":"^0.12.8","karma-chai":"^0.1.0","karma-chrome-launcher":"^0.1.2","karma-mocha":"~0.1.10","karma-phantomjs-launcher":"^0.1.2","load-grunt-tasks":"^0.3.0"},"gitHead":"940be16d1bdc2ff987a886aced6ea65ddfe5717d","bugs":{"url":"https://github.com/ISO50/mocha-test-container-support/issues"},"homepage":"https://github.com/ISO50/mocha-test-container-support","_id":"mocha-test-container-support@0.1.0","scripts":{},"_shasum":"c9c2e6d3b6fc76a393db83a18fcf8c8b39df8bb5","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.36","_npmUser":{"name":"iso50","email":"0xdead10cc@gmx.de"},"maintainers":[{"name":"iso25","email":"0xdead10cc@gmx.de"},{"name":"iso50","email":"0xdead10cc@gmx.de"},{"name":"nikku","email":"git_nikku@nixis.de"}],"dist":{"shasum":"c9c2e6d3b6fc76a393db83a18fcf8c8b39df8bb5","size":4882,"noattachment":false,"tarball":"http://tools.bpmhome.cn:8082/nexus/repository/npm-lc/mocha-test-container-support/-/mocha-test-container-support-0.1.0.tgz"},"directories":{},"publish_time":1429171970889,"_cnpm_publish_time":1429171970889,"_hasShrinkwrap":false},"0.2.0":{"name":"mocha-test-container-support","version":"0.2.0","description":"An extension for Mocha that provides test container support.","author":{"name":"Joerg Dotzki"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ISO50/mocha-test-container-support.git"},"devDependencies":{"chai":"~2.2.0","grunt":"~0.4.4","grunt-karma":"^0.8.0","grunt-release":"^0.7.0","grunt-contrib-jshint":"^0.11.1","karma":"^0.12.8","karma-chai":"^0.1.0","karma-chrome-launcher":"^0.1.2","karma-mocha":"~0.1.10","karma-phantomjs-launcher":"^0.1.2","load-grunt-tasks":"^0.3.0"},"gitHead":"11d299749f75e2b82f5f1aaa10aad9ad5d270e70","bugs":{"url":"https://github.com/ISO50/mocha-test-container-support/issues"},"homepage":"https://github.com/ISO50/mocha-test-container-support#readme","_id":"mocha-test-container-support@0.2.0","scripts":{},"_shasum":"02fd26681312b92daf4bbca87ff609357212cd85","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"nikku","email":"git_nikku@nixis.de"},"maintainers":[{"name":"iso25","email":"0xdead10cc@gmx.de"},{"name":"iso50","email":"0xdead10cc@gmx.de"},{"name":"nikku","email":"git_nikku@nixis.de"}],"dist":{"shasum":"02fd26681312b92daf4bbca87ff609357212cd85","size":5230,"noattachment":false,"tarball":"http://tools.bpmhome.cn:8082/nexus/repository/npm-lc/mocha-test-container-support/-/mocha-test-container-support-0.2.0.tgz"},"directories":{},"publish_time":1442314652823,"_cnpm_publish_time":1442314652823,"_hasShrinkwrap":false}},"name":"mocha-test-container-support","time":{"modified":"2018-08-11T16:24:17.304Z","created":"2015-04-05T12:26:38.044Z","0.0.1":"2015-04-05T12:26:38.044Z","0.1.0":"2015-04-16T08:12:50.889Z","0.2.0":"2015-09-15T10:57:32.823Z"},"readmeFilename":"README.md","homepage":"https://github.com/ISO50/mocha-test-container-support#readme"}