A different way to get a new file to test is to create a different "describe" block with a new test file. Modify before and after to setup a test with the given file.


        function setupTest(path, primePump) {
            DocumentManager.getDocumentForPath(path).done(function (doc) {
                testDoc = doc;
            });

            waitsFor(function () {
                return testDoc !== null;
            }, "Unable to open test document", 10000);

            // create Editor instance (containing a CodeMirror instance)
            runs(function () {
                testEditor = createMockEditor(testDoc);
                JSCodeHints.initializeSession(testEditor, primePump);
            });
        }

        function tearDownTest() {
            // The following call ensures that the document is reloaded
            // from disk before each test
            DocumentManager.closeAll();

            SpecRunnerUtils.destroyMockEditor(testDoc);
            testEditor = null;
            testDoc = null;
        }

       describe("JavaScript Code Hinting Basic", function () {

            beforeEach(function () {
                setupTest(testPath, false);
            });
            
            afterEach(function () {
                tearDownTest();
            });