2014-09-25 17:04:46 -04:00
|
|
|
var TEST_REGEXP = /^\/base\/modules\/[^\/]*\/test\/.*/;
|
|
|
|
|
|
|
|
Object.keys(window.__karma__.files).forEach(function(path) {
|
|
|
|
if (TEST_REGEXP.test(path)) {
|
|
|
|
var moduleName = path
|
|
|
|
.replace(/.*\/modules\//, '')
|
|
|
|
.replace(/\/src\//, '/')
|
|
|
|
.replace(/\/test\//, '/')
|
|
|
|
.replace(/\.\w*$/, '');
|
2014-09-26 20:36:57 -04:00
|
|
|
var mod = System.get(moduleName);
|
|
|
|
if (mod.main) {
|
|
|
|
mod.main();
|
|
|
|
}
|
2014-09-25 17:04:46 -04:00
|
|
|
}
|
|
|
|
});
|