Selaa lähdekoodia

Fix Last Modules Tests

sebastien 6 vuotta sitten
vanhempi
commit
fb4287e248

+ 0 - 1
Tools/Gulp/tasks/gulpTasks-tests.js

@@ -304,7 +304,6 @@ gulp.task("tests-modules", function() {
                 return new Promise(function(resolve, reject) {
                     var kamaServerOptions = {
                         configFile: rootDir + "tests/modules/karma.conf.js",
-                        singleRun: true
                     };
 
                     var server = new karmaServer(kamaServerOptions, (err) => {

+ 1 - 1
tests/modules/karma.conf.js

@@ -28,7 +28,7 @@ module.exports = function (config) {
         port: 3000,
         colors: true,
         autoWatch: false,
-        singleRun: false,
+        singleRun: true,
 
         // level of logging
         // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG

+ 3 - 3
tests/modules/tests-karma.js

@@ -1,13 +1,13 @@
 
 
-function runTests(testType, BABYLON, GUI) {
+function runTests(testType, BBL, GUI, GLTF2) {
 
     console.log("running tests");
 
     describe(testType + ' tests', function () {
 
         it("should have BABYLON loaded", function () {
-            assert.isDefined(BABYLON);
+            assert.isDefined(BBL);
         })
 
         it("should have GUI loaded", function () {
@@ -15,7 +15,7 @@ function runTests(testType, BABYLON, GUI) {
         })
 
         it("should have BABYLON.GLTF2 loaded", function () {
-            assert.isDefined(BABYLON.GLTF2);
+            assert.isDefined(GLTF2);
         })
 
         var subject;

+ 5 - 2
tests/modules/typescript-vanilla/src/tests-loader.ts

@@ -1,7 +1,10 @@
 /// <reference path="../../../../dist/preview release/babylon.d.ts"/>
 /// <reference path="../../../../dist/preview release/gui/babylon.gui.d.ts"/>
+/// <reference path="../../../../dist/preview release/glTF2Interface/babylon.glTF2Interface.d.ts"/>
+/// <reference path="../../../../dist/preview release/loaders/babylonjs.loaders.d.ts"/>
+
 // an error in typescript prevents us from using types instead of path
 
-declare function runTests(name: string, babylon: any, gui: any);
+declare function runTests(name: string, babylon: any, gui: any, gltf2: any);
 
-runTests("typescript-vanilla", BABYLON, BABYLON.GUI);
+runTests("typescript-vanilla", BABYLON, BABYLON.GUI, BABYLON.GLTF2);

+ 3 - 3
tests/modules/typescript-webpack/index.ts

@@ -1,10 +1,10 @@
 import * as BABYLON from "babylonjs";
 import * as GUI from "babylonjs-gui";
+import * as LOADERS from "babylonjs-loaders";
 
-import "babylonjs-loaders";
 import "babylonjs-serializers";
 // an error in typescript prevents us from using types instead of path
 
-declare function runTests(name: string, babylon: any, gui: any);
+declare function runTests(name: string, babylon: any, gui: any, gltf2: any);
 
-runTests("typescript-webpack", BABYLON, GUI);
+runTests("typescript-webpack", BABYLON, GUI, LOADERS.GLTF2);

+ 1 - 1
tests/modules/typescript-webpack/tsconfig.json

@@ -6,7 +6,7 @@
         "noImplicitAny": false,
         "removeComments": true,
         "preserveConstEnums": true,
-        "sourceMap": true,
+        "sourceMap": false,
         "experimentalDecorators": true,
         "isolatedModules": false,
         "lib": [