Feature/test suite (#169)

* Adding first run of the test environment

* small tweaks

* Fixing tests suite to ohif-viewer

* Improving documentation and fixing versions

* Removing commented lines
This commit is contained in:
André Botelho Almeida authored and Erik Ziegler committed 2018-03-27 11:50:40 +02:00
1 parent 43a7e8151a
commit bf68707ff2
7 files changed
+325

No files matched your search

+48
View File
@@ -212,3 +212,51 @@ Package.onUse(function(api) {
api.mainModule('main.js', 'client');
});
Package.onTest(function(api) {
const both = ['client', 'server'];
api.versionsFrom('1.4');
/*
* Really important dependencies to the project
*/
api.use(['ecmascript',
'standard-app-packages',
'http',
'jquery',
'mongo',
'momentjs:moment',
'validatejs',
'u2622:persistent-session'
], both);
// OHIF dependencies
api.use([
'lookback:logger',
'aldeed:simple-schema@1.5.3',
'ohif:design',
'ohif:core',
'ohif:hotkeys',
'ohif:log'
], both);
/*
* Our custom packages
*/
api.use('ohif:viewerbase', both);
/*
* Tests framework components
*/
api.use('cultofcoders:mocha');
api.use('practicalmeteor:sinon');
api.use('practicalmeteor:chai');
api.use('lmieulet:meteor-coverage@1.1.4');
api.use('xolvio:template-isolator');
/*
* Adding all our tests files
*/
api.addFiles('./tests/client/components/viewer/gridLayout/gridLayout.tests.js', 'client');
});