Ajout du chargement de fichiers .csv utiles aux tests.

This commit is contained in:
Fabrice PENHOËT 2021-08-10 15:51:51 +02:00
parent 0feb525725
commit 475a7c97d7
1 changed files with 5 additions and 2 deletions

View File

@ -12,8 +12,10 @@ module.exports = function(config) {
frameworks: ["jasmine", "karma-typescript"],
// list of files / patterns to load in the browser
files: [ "src/freeCSV2HTML.ts", "tests/*.ts" ],
files: [ "src/freeCSV2HTML.ts", "tests/*.ts" , { pattern: 'tests/datas/*.csv', watched: true, included: false, served: true } ],
proxies: { "/datas/": "http://localhost:9876/base/tests/datas/" },
// list of files / patterns to exclude
exclude: [
],
@ -45,7 +47,8 @@ module.exports = function(config) {
// start these browsers
// available browser launchers: https://www.npmjs.com/search?q=keywords:karma-launcher
browsers: ['Firefox', 'Chromium'],
browsers: ['Firefox'],
//browsers: ['Firefox', 'Chromium'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits