Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
To run qUnit tests through Watin within Visual Studio
C# Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
build_support
lib
src
.gitignore
Build.bat
README.md
RakeFile

README.md

This is a to run qUnit tests in Visual Studio.

Add the following test fixture to your project and run qUnit tests.

[TestFixture]
public class When_asked_to_run_QUnit_tests
{
    private readonly IJSTestRunner _testRunner = new JSTestRunner();

    [Test]
    [TestCaseSource("RunQUnitTests")]
    public void Should_run_the_tests_and_display_the_results(JSTest jsTest)
    {
        Assert.True(jsTest.Passed, jsTest.Message);
    }

    private IEnumerable<JSTest> RunQUnitTests()
    {
        // <Test Files Directory> is the directory where you have your html files that link to your JS tests like C:\\Tests
        return _testRunner.RunTests("<Test Files Directory>"));
    }
}
Something went wrong with that request. Please try again.