How to run QUnit test and get back test result in C# via JavaScript callback?
In my several projects, I use MVC pattern for separating code (of concerns) into 3 tiers. Both of Model and Control tiers run on C# so I use testing framework like MSTest or NUnit to validate functional requirement for these tiers. For View tiers, I use QUnit to test JavaScript files. However, I cannot execute QUnit as automated test because MSTest doesn't directly support for testing web page. I need to run it in MSTest like the following logic. [TestMethod] public void JavaScriptTest() { var result = QUnit.Test('~/QUnit/test1.htm'); Assert.IsTrue(result.Failed <= 0) } Solution must use