Quantcast
Channel: Chutzpah - A JavaScript Test Runner
Viewing all articles
Browse latest Browse all 1864

New Post: Problem with test explorer not finding tests using requirejs and qunit

$
0
0
I have a strange problem whereby test explorer cant discover my tests, but if I run them using the context menu option 'Run JS Tests' or 'Open in Browser' they work fine. They also work fine if I run them from chutzpah.console.exe.

When I save the test file I do get the following error in the output window:
------ Discover test started ------
Error: Timeout occured when executing test file
While Running: **path to test file**
My tests are all using requirejs, and my chutzpah.json file looks like this:
{
    "Framework": "qunit",
    "TestHarnessReferenceMode": "AMD",
    "TestHarnessLocationMode": "SettingsFileAdjacent",
    "References" : [
        {"Path" : "../_filepath_/require.js" }
    ]
}
And a sample test that doesn't get discovered looks like this:
define(function () {

    test("Proof Test", function () {
        equal(false, false, "Test should pass");
    });

});
Am I missing or misunderstanding something?

Viewing all articles
Browse latest Browse all 1864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>