mirror of https://gitee.com/bigwinds/arangodb
Added build for coverage tests. We do not want to check coverage of libraries
This commit is contained in:
parent
72e1e949d7
commit
c19ee02a93
|
@ -147,6 +147,27 @@
|
|||
return [];
|
||||
}
|
||||
}
|
||||
},
|
||||
coverage: {
|
||||
files: {
|
||||
'frontend/build/lib.test.js': [
|
||||
'<%=project.shared.lib %>',
|
||||
'<%=project.standalone.lib %>',
|
||||
'<%=project.standalone.modules %>'
|
||||
],
|
||||
'frontend/build/app.test.js': [
|
||||
'<%=project.standalone.graphViewer %>',
|
||||
'<%=project.standalone.js %>'
|
||||
]
|
||||
},
|
||||
options: {
|
||||
extractRequired: function () {
|
||||
return [];
|
||||
},
|
||||
extractDeclared: function () {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -198,5 +219,9 @@
|
|||
'uglify:dist'
|
||||
]);
|
||||
|
||||
grunt.registerTask('coverage', [
|
||||
'concat_in_order:coverage'
|
||||
]);
|
||||
|
||||
};
|
||||
}());
|
||||
|
|
|
@ -0,0 +1,93 @@
|
|||
{ "files": [
|
||||
"test/lib/jasmine-1.3.1/jasmine-html.js",
|
||||
{ "pattern": "frontend/js/templates/*.ejs", "served": true, "included": false, "watched": true},
|
||||
{ "pattern": "clusterFrontend/js/templates/*.ejs", "served": true, "included": false, "watched": true},
|
||||
"test/mocks/activateTest.js",
|
||||
"test/specs/graphViewer/helper/eventHelper.js",
|
||||
"test/specs/graphViewer/helper/objectsHelper.js",
|
||||
"test/specs/graphViewer/helper/mocks.js",
|
||||
"test/specs/graphViewer/helper/commMock.js",
|
||||
"test/specs/graphViewer/helper/uiMatchers.js",
|
||||
"test/mocks/disableEJS.js",
|
||||
|
||||
"frontend/build/lib.test.js",
|
||||
"frontend/build/app.test.js",
|
||||
|
||||
"test/specs/graphViewer/specColourMapper/colourMapperSpec.js",
|
||||
"test/specs/graphViewer/specWindowObjects/domObserverFactorySpec.js",
|
||||
"test/specs/graphViewer/specCommunityNode/communityNodeSpec.js",
|
||||
"test/specs/graphViewer/specAdapter/interfaceSpec.js",
|
||||
"test/specs/graphViewer/specAdapter/abstractAdapterSpec.js",
|
||||
"test/specs/graphViewer/specAdapter/jsonAdapterSpec.js",
|
||||
"test/specs/graphViewer/specAdapter/arangoAdapterSpec.js",
|
||||
"test/specs/graphViewer/specAdapter/gharialAdapterSpec.js",
|
||||
"test/specs/graphViewer/specAdapter/foxxAdapterSpec.js",
|
||||
"test/specs/graphViewer/specAdapter/previewAdapterSpec.js",
|
||||
"test/specs/graphViewer/specAdapter/arangoAdapterUISpec.js",
|
||||
"test/specs/graphViewer/specAdapter/gharialAdapterUISpec.js",
|
||||
"test/specs/graphViewer/specNodeShaper/nodeShaperSpec.js",
|
||||
"test/specs/graphViewer/specNodeShaper/nodeShaperUISpec.js",
|
||||
"test/specs/graphViewer/specEdgeShaper/edgeShaperSpec.js",
|
||||
"test/specs/graphViewer/specEdgeShaper/edgeShaperUISpec.js",
|
||||
"test/specs/graphViewer/specForceLayouter/forceLayouterSpec.js",
|
||||
"test/specs/graphViewer/specForceLayouter/forceLayouterUISpec.js",
|
||||
"test/specs/graphViewer/specEvents/eventLibrarySpec.js",
|
||||
"test/specs/graphViewer/specEvents/eventDispatcherSpec.js",
|
||||
"test/specs/graphViewer/specEvents/eventDispatcherUISpec.js",
|
||||
"test/specs/graphViewer/specZoomManager/zoomManagerSpec.js",
|
||||
"test/specs/graphViewer/specGraphViewer/graphViewerSpec.js",
|
||||
"test/specs/graphViewer/specGraphViewer/graphViewerUISpec.js",
|
||||
"test/specs/graphViewer/specGraphViewer/graphViewerWidgetSpec.js",
|
||||
"test/specs/graphViewer/specGraphViewer/graphViewerPreviewSpec.js",
|
||||
"test/specs/graphViewer/specNodeReducer/nodeReducerSpec.js",
|
||||
"test/specs/graphViewer/specNodeReducer/modularityJoinerSpec.js",
|
||||
"test/specs/graphViewer/specContextMenu/contextMenuSpec.js",
|
||||
"test/specs/arango/arangoSpec.js",
|
||||
"test/specs/config/dygraphConfigSpec.js",
|
||||
"test/specs/models/currentDatabaseSpec.js",
|
||||
"test/specs/models/graphSpec.js",
|
||||
"test/specs/models/arangoCollectionModelSpec.js",
|
||||
"test/specs/models/arangoDatabaseSpec.js",
|
||||
"test/specs/models/arangoDocumentSpec.js",
|
||||
"test/specs/models/arangoLogModelSpec.js",
|
||||
"test/specs/models/arangoStatisticsDescriptionSpec.js",
|
||||
"test/specs/models/arangoStatisticsSpec.js",
|
||||
"test/specs/models/arangoUsersSpec.js",
|
||||
"test/specs/models/foxxSpec.js",
|
||||
|
||||
"test/specs/collections/arangoCollectionsSpec.js",
|
||||
"test/specs/collections/arangoDatabaseSpec.js",
|
||||
"test/specs/collections/arangoDocumentSpec.js",
|
||||
"test/specs/collections/arangoLogsSpec.js",
|
||||
"test/specs/collections/arangoReplicationSpec.js",
|
||||
"test/specs/collections/arangoStatisticsCollectionSpec.js",
|
||||
"test/specs/collections/arangoStatisticsDescriptionCollectionSpec.js",
|
||||
"test/specs/collections/arangoUsersSpec.js",
|
||||
"test/specs/collections/foxxCollectionSpec.js",
|
||||
"test/specs/collections/graphCollectionSpec.js",
|
||||
"test/specs/collections/notificationCollectionSpec.js",
|
||||
|
||||
|
||||
"test/specs/views/apiViewSpec.js",
|
||||
"test/specs/views/modalViewSpec.js",
|
||||
"test/specs/views/editListEntryViewSpec.js",
|
||||
"test/specs/views/collectionsViewSpec.js",
|
||||
"test/specs/views/collectionsItemViewSpec.js",
|
||||
"test/specs/views/dbSelectionViewSpec.js",
|
||||
"test/specs/views/navigationViewSpec.js",
|
||||
"test/specs/views/loginViewSpec.js",
|
||||
"test/specs/views/userBarViewSpec.js",
|
||||
"test/specs/views/documentViewSpec.js",
|
||||
"test/specs/views/dashboardViewSpec.js",
|
||||
"test/specs/views/graphManagementViewSpec.js",
|
||||
"test/specs/views/newLogsViewSpec.js",
|
||||
"test/specs/views/notificationViewSpec.js",
|
||||
"test/specs/views/statisticBarViewSpec.js",
|
||||
"test/specs/views/shellViewSpec.js",
|
||||
"test/specs/views/userManagementViewSpec.js",
|
||||
|
||||
"test/specs/router/routerSpec.js",
|
||||
|
||||
"test/specs/router/versionCheckSpec.js"
|
||||
]
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
// Karma configuration
|
||||
// Generated on Thu Jul 04 2013 11:39:34 GMT+0200 (CEST)
|
||||
|
||||
filesJSON = require("./files.json");
|
||||
filesJSON = require("./files_coverage.json");
|
||||
|
||||
module.exports = function(karma) {
|
||||
|
||||
|
@ -25,14 +25,7 @@ module.exports = function(karma) {
|
|||
|
||||
preprocessors: {
|
||||
'test/karma/files.json': ['html2js'],
|
||||
'clusterFrontend/js/**/**.js': ['coverage'],
|
||||
'frontend/js/arango/**.js': ['coverage'],
|
||||
'frontend/js/collections/**.js': ['coverage'],
|
||||
'frontend/js/config/**.js': ['coverage'],
|
||||
'frontend/js/graphViewer/**/**.js': ['coverage'],
|
||||
'frontend/js/models/**.js': ['coverage'],
|
||||
'frontend/js/routers/**.js': ['coverage'],
|
||||
'frontend/js/views/**.js': ['coverage']
|
||||
'frontend/build/app.test.js': ['coverage']
|
||||
},
|
||||
|
||||
// test results reporter to use
|
||||
|
|
Loading…
Reference in New Issue