-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: plugin-proposals
-
None
This request is for Koshuke. I spoke with you today in the NY training class regarding YUI Test framework that allows you to create Java script unit tests. Here is an example of the output:
http://developer.yahoo.com/yui/3/test/#viewing-results
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
<testsuite name="Y.Anim" failures="0" total="5" time="0.0060">
<testcase name="test_getEl" time="0.0"></testcase>
<testcase name="test_isAnimated" time="0.0010"></testcase>
<testcase name="test_stop" time="0.0010"></testcase>
<testcase name="test_onStart" time="0.0010"></testcase>
<testcase name="test_endValue" time="0.0010"></testcase>
</testsuite>
</testsuites>
This output can be also posted using the framework:
http://developer.yahoo.com/yui/3/test/#test-reporting
var reporter = new Y.Test.Reporter("http://www.yourserver.com/path/to/target");
reporter.report(results);
It would be great to have the ability to post this JUnit like XML format to Jenkins directly during the build process. I use Selenium to kick off the Java script unit tests.