Recommend this page to a friend! |
Classes of fathurrahman | mnTemplate | public/asset/vendor/datepicker/tests/README.md | Download |
|
Download Unit tests, written with QUnit, are used to expose bugs for squashing, prevent bugs from respawning, and suppress new bugs when adding new features and making changes. Running the testsThe simplest way to run the tests is to open To run the tests from the command line, download and install
PhantomJS, and run
Failed tests and their failed assertions will be printed to the console. A results summary will be printed at the end. To generate coverage statistics, use JSCoverage to instrument the js files:
Coverage percentage will be included in the output summary, and a highlighted line-by-line html file will be generated. Shout-outThanks to Rod @ While One Fork for the CIS guide on putting the above together. Adding testsTests go in js files in the In order for new tests to be run, they must be imported into Can I use this?By all means, please do! Just note that I stopped working on this structure once it fit my needs, there's no real support for it, and it may change in the future. Otherwise, have at it. |