Files
GDevelop/GDJS/tests/karma.conf.js
Florian Rival fc3aa161c5 Replace HSHG in platformruntimebehavior.js by RBush
TODO: Check if RBush create/destroy a lot of temporary JS objects and arrays
and try to reduce this.
2016-12-29 16:59:56 +01:00

62 lines
2.2 KiB
JavaScript

module.exports = function(config) {
config.set({
frameworks: ['mocha'],
files: [
'node_modules/phantomjs-polyfill/bind-polyfill.js',
'node_modules/expect.js/index.js',
//GDJS game engine files: (Order is important)
'../Runtime/libs/jshashtable.js',
'../Runtime/gd.js',
'../Runtime/libs/hshg.js',
'../Runtime/libs/rbush.js',
'../Runtime/cocos-renderers/cocos-director-manager.js',
'../Runtime/pixi-renderers/pixi.js',
'../Runtime/pixi-renderers/*.js',
'../Runtime/howler-sound-manager/howler.min.js',
'../Runtime/howler-sound-manager/howler-sound-manager.js',
'../Runtime/timemanager.js',
'../Runtime/runtimeobject.js',
'../Runtime/runtimescene.js',
'../Runtime/scenestack.js',
'../Runtime/profiler.js',
'../Runtime/polygon.js',
'../Runtime/force.js',
'../Runtime/layer.js',
'../Runtime/timer.js',
'../Runtime/inputmanager.js',
'../Runtime/runtimegame.js',
'../Runtime/variable.js',
'../Runtime/variablescontainer.js',
'../Runtime/eventscontext.js',
'../Runtime/runtimescene.js',
'../Runtime/runtimebehavior.js',
'../Runtime/runtimeobject.js',
'../Runtime/spriteruntimeobject.js',
'../Runtime/events-tools/commontools.js',
'../Runtime/events-tools/runtimescenetools.js',
'../Runtime/events-tools/inputtools.js',
'../Runtime/events-tools/objecttools.js',
'../Runtime/events-tools/cameratools.js',
'../Runtime/events-tools/soundtools.js',
'../Runtime/events-tools/storagetools.js',
'../Runtime/events-tools/stringtools.js',
'../Runtime/events-tools/windowtools.js',
//Extensions:
'../../Extensions/DraggableBehavior/draggableruntimebehavior.js',
'../../Extensions/PlatformBehavior/platformerobjectruntimebehavior.js',
'../../Extensions/PlatformBehavior/platformruntimebehavior.js',
'../../Extensions/LinkedObjects/linkedobjects.js',
'../../Extensions/Inventory/inventory.js',
'../../Extensions/Inventory/inventorytools.js',
//All tests files:
'./tests/init.js',
'../../Extensions/**/tests/**.spec.js',
'./tests/**/*.js'
]
});
};