The following blog post of Chad Myers gives a good introduction to unit testing of jQuery client side Java Script with the aid of QUnit.
And this post of Joshua Flanagan is a follow up which explains how one could integrate the QUnit tests into a CI build.
Note: NUnit has to run on a single threaded apartment thread [STA]. To do this add an app.config to your test assembly with the following content
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="NUnit">
<section name="TestRunner" type="System.Configuration.NameValueSectionHandler"/>
</sectionGroup>
</configSections>
<NUnit>
<TestRunner>
<add key="ApartmentState" value="STA" />
</TestRunner>
</NUnit>
</configuration>
No comments:
Post a Comment