Sponsored By Aspose - File Format APIs for .NET

Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!

What do you use to incorporate JSUnit tests into a NAnt build?

Anybody got some good tips, or a working NAnt task for this that they like?  I use a slightly modified version of the

JsUnit document.write(JSUNIT_VERSION);2.1 TestRunner, but it would be pretty easy to convert to something else.


Thanks in advance. 

About Jeremy Miller

Jeremy is the Chief Software Architect at Dovetail Software, the coolest ISV in Austin. Jeremy began his IT career writing "Shadow IT" applications to automate his engineering documentation, then wandered into software development because it looked like more fun. Jeremy is the author of the open source StructureMap tool for Dependency Injection with .Net, StoryTeller for supercharged acceptance testing in .Net, and one of the principal developers behind FubuMVC. Jeremy's thoughts on all things software can be found at The Shade Tree Developer at http://codebetter.com/jeremymiller.
This entry was posted in Uncategorized. Bookmark the permalink. Follow any comments here with the RSS feed for this post.
  • http://www.persistall.com Brian Donahue

    Hi Jeremy,

    Did you ever come up with an approach you liked for this? Just curious as we are starting to play with jsUnit.

  • Arindam Manna

    I am working on JsUnit buils. I want to run the JsUnit testcases and genarate a html report. I need any xslt stylesheet which can convert a xml format jsunit report to html format.

  • http://www.codebetter.com/blogs/jay.kimble jkimble


    I use ecmaunit which is a little more flexible IMO for running tests. It has the browser based test viewer like JSUnit, but it also has a simple script that can be used to run JS tests from the command line (which I know Nant will handle very well).

    I know this isn’t the solution you were looking for necessarily, but JSUnit seems to be a fuller test environment (but you pay because there are some complexities to it)…

    Ecmaunit feels better me (I wonder if it might be possible to cross pollinate some of the tools)


  • Toby Henderson

    We use a Nant exec task to do the job.

    ${site}/jsunit – contains jsunit
    ${site}/tests/jsunit – contains all the jsunit tests

    Hope this helps.

    If you need to ask any other questions; tobyh at perfectinfo dot com
    I’ll try help get you up and running

    Got a basic style sheet to show the results. If you need it.

  • http://codebetter.com/blogs/jeremy.miller Jeremy D. Miller


    I’m looking for the same think in all likelihood. I know it’s possible and other people have done it. I’m mildly tempted to try to write a TestDriven.Net plugin for it.

  • Rytmis

    … or did you mean you’re using the HTML page and are actually looking for the same thing I am? :)

  • Rytmis

    How exactly did you do that? I was under the impression that the test runner is just a HTML page. Of course I suppose it would be possible to script IE to run the tests, but my project is cross-platform and I’d like to avoid a build dependency on a browser too…