QUnit with dependencies


  • I survived the hour long Uno hand

    Filed under: There has to be a better way to do this.

    I have front-end Javascript, but I'm not using require.js or anything like that to manage dependencies. I have unit tests written in QUnit. Most tutorials use something like Karma to run those from the command-line, but I need to load a bunch of dependency libraries in order for the code to run. So I put together a custom runner that is served via coldfusion to parse the dependencies of each module and load them into the browser along with the object under test and the test code.

    But I want to do this via Karma so I can integrate with Sauce Labs in my CI system. How do I do that?


Log in to reply