JSUnitTestRunner Application
This application isn't bundled with any XWiki product by default.
Application contributed by Jerome Velociter.
This application can be downloaded .
Application contributed by Jerome Velociter.
This application can be downloaded .
JSUnitTestRunner Application
JSUnit Test Runner
Integration of JSUnit "Unit Testing framework for client-side (in-browser) JavaScript" into XWiki. Let you run its javascript test runner from XWiki, and write your tests directly in XWiki pages.
Please, report to http://www.jsunit.net/ for more information or documentation about JSUnit.
Usage
Run JSUnit standard test runner
Once you have the application installed, just point your browser on http://yourserver/xwiki/bin/view/XWiki/JSUnit and you will be offered JSUnit's standard test runner. This is the same server as the one accessible online, except that it is hosted on your wiki.Write javascript tests as XWiki pages
With the XWiki integration of JSUnit, you can write test cases or test suites directly as wiki pages. For this, you just need to JSX use the page XWiki.JSUnit, and your can get started :$xwiki.jsx.use("XWiki.JSUnit") <script type="text/javascript"> function testSomething(){ assertEquals(1, 1); } … </script>
#includeTopic("XWiki.JSUnit") $xwiki.jsx.use("XWiki.JSUnit") <script type="text/javascript"> … // your tests here </script>