

function runTests(testType, BABYLON, GUI, INSPECTOR) {

    console.log("running tests");

    describe(testType + ' tests', function () {

        it("should have BABYLON loaded", function () {
            assert.isDefined(BABYLON);
        })

        it("should have GUI loaded", function () {
            assert.isDefined(GUI);
        })

        it("should have BABYLON.GLTF2 loaded", function () {
            assert.isDefined(BABYLON.GLTF2);
        })

        var subject;

        /**
         * Create a nu engine subject before each test.
         */
        beforeEach(function () {
            subject = new BABYLON.NullEngine({
                renderHeight: 256,
                renderWidth: 256,
                textureSize: 256,
                deterministicLockstep: false,
                lockstepMaxSteps: 1
            });
        });
        /**
         * This test is more an integration test than a regular unit test but highlights how to rely
         * on the BABYLON.NullEngine in order to create complex test cases.
         */
        describe('#GLTF', function () {
            it('should load BoomBox GLTF', function (done) {
                mocha.timeout(10000);
                var scene = new BABYLON.Scene(subject);
                BABYLON.SceneLoader.Append("/Playground/scenes/BoomBox/", "BoomBox.gltf", scene, function () {
                    scene.meshes.length.should.be.equal(2);
                    scene.materials.length.should.be.equal(1);
                    scene.multiMaterials.length.should.be.equal(0);
                    done();
                });
            });
        });
    });
}


function runTests(testType, BABYLON, GUI) {

    console.log("running tests");

    describe(testType + ' tests', function () {

        it("should have BABYLON loaded", function () {
            assert.isDefined(BABYLON);
        })

        it("should have GUI loaded", function () {
            assert.isDefined(GUI);
        })

        it("should have BABYLON.GLTF2 loaded", function () {
            assert.isDefined(BABYLON.GLTF2);
        })

        var subject;

        /**
         * Create a nu engine subject before each test.
         */
        beforeEach(function () {
            subject = new BABYLON.NullEngine({
                renderHeight: 256,
                renderWidth: 256,
                textureSize: 256,
                deterministicLockstep: false,
                lockstepMaxSteps: 1
            });
        });
        /**
         * This test is more an integration test than a regular unit test but highlights how to rely
         * on the BABYLON.NullEngine in order to create complex test cases.
         */
        describe('#GLTF', function () {
            it('should load BoomBox GLTF', function (done) {
                mocha.timeout(10000);
                var scene = new BABYLON.Scene(subject);
                BABYLON.SceneLoader.Append("/Playground/scenes/BoomBox/", "BoomBox.gltf", scene, function () {
                    scene.meshes.length.should.be.equal(2);
                    scene.materials.length.should.be.equal(1);
                    scene.multiMaterials.length.should.be.equal(0);
                    done();
                });
            });
        });
    });
}
Remove inspector left over from module tests.
Remove inspector left over from module tests.
