Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(karma): modifica configurações para os testes em CI #2162

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ projects/portal/src/app/menu.service.ts
projects/portal/src/assets/json/api-list.json
projects/portal/src/assets/json/version.json
projects/portal/src/app/documentation/documentation-routing.module.ts
.scannerwork
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
"test:storage:schematics": "gulp build:schematics --lib storage && jasmine \"dist/ng-storage/schematics/**/*.spec.js\"",
"test:sync": "ng test sync --watch=false --code-coverage --browsers=ChromeHeadless --source-map",
"test:sync:schematics": "gulp build:schematics --lib sync && jasmine \"dist/ng-sync/schematics/**/*.spec.js\"",
"test:sync:browse": "ng test sync --code-coverage --browsers=Chrome --source-map",
"test:sync:browse": "ng test sync --code-coverage --browsers=ChromeHeadless --source-map --watch=false",
"test:ui": "ng test ui --watch=false --code-coverage --browsers=ChromeHeadless --source-map",
"test:ui:schematics": "gulp build:schematics --lib ui && jasmine \"./dist/ng-components/schematics/**/*.spec.js\"",
"test:ui:browse": "ng test ui --code-coverage --browsers=Chrome --source-map",
"test:ui:browse": "ng test ui --code-coverage --browsers=ChromeHeadless --source-map --watch=false",
"test:templates": "ng test templates --watch=false --code-coverage --browsers=ChromeHeadless --source-map",
"test:templates:schematics": "gulp build:schematics --lib templates && jasmine \"dist/ng-templates/schematics/**/*.spec.js\"",
"test:templates:browse": "ng test templates --code-coverage --browsers=Chrome --source-map",
"test:templates:browse": "ng test templates --code-coverage --browsers=ChromeHeadless --source-map --watch=false",
"test:code-editor": "ng test code-editor --watch=false --code-coverage --browsers=ChromeHeadless --source-map",
"test:code-editor:schematics": "gulp build:schematics --lib code-editor && jasmine \"dist/ng-code-editor/schematics/**/*.spec.js\"",
"test:code-editor:browse": "ng test code-editor --code-coverage --browsers=Chrome --source-map",
"test:code-editor:browse": "ng test code-editor --code-coverage --browsers=ChromeHeadless --source-map --watch=false",
"test:dev": "ng test --browsers=ChromeHeadless",
"build:schematics": "cd ./projects/schematics && npm run build",
"build:ui": "ng build ui --configuration production && gulp build:schematics --lib ui && gulp replaceVersion && cd dist/ng-components && npm pack",
Expand Down Expand Up @@ -75,6 +75,8 @@
"@capacitor/core": "5.7.2",
"@capacitor/network": "^5.0.7",
"@po-ui/style": "18.0.0",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"capitalize": "^2.0.4",
"colors": "1.4.0",
"core-js": "3.33.3",
Expand All @@ -91,6 +93,7 @@
"run-sequence": "^2.2.1",
"rxjs": "~7.8.1",
"rxjs-compat": "~6.6.7",
"sonarqube-scanner": "^2.8.0",
"tslib": "^2.6.2",
"zone.js": "~0.14.4"
},
Expand All @@ -112,8 +115,6 @@
"@types/node": "^20.10.0",
"@types/resize-observer-browser": "^0.1.11",
"@types/systemjs": "^6.13.5",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"del": "^6.0.0",
"dgeni": "^0.4.14",
"dgeni-packages": "0.30.0",
Expand All @@ -139,7 +140,6 @@
"protractor": "~7.0.0",
"rollup": "4.6.0",
"sonarjs": "latest",
"sonarqube-scanner": "^2.8.0",
"standard-version": "^9.5.0",
"ts-node": "~10.9.1",
"typemoq": "^2.1.0",
Expand Down
11 changes: 7 additions & 4 deletions projects/code-editor/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,20 @@ module.exports = function (config) {
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
logLevel: config.LOG_DEBUG,
watch: false,
browsers: ['ChromeHeadless'],
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: ['--no-sandbox', '--headless', '--disable-gpu', '--disable-web-security', '--remote-debugging-port=9222']
}
},
singleRun: false,
singleRun: true,
restartOnFileChange: true,
browserNoActivityTimeout: 30000
browserNoActivityTimeout: 30000,
browserDisconnectTimeout: 30000,
captureTimeout: 30000,
browserDisconnectTolerance: 3
});
};
12 changes: 8 additions & 4 deletions projects/portal/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ module.exports = function (config) {
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
logLevel: config.LOG_DEBUG,
watch: false,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
singleRun: true,
restartOnFileChange: true,
browserNoActivityTimeout: 30000,
browserDisconnectTimeout: 30000,
captureTimeout: 30000,
browserDisconnectTolerance: 3
});
};
11 changes: 7 additions & 4 deletions projects/storage/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,20 @@ module.exports = function (config) {
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
logLevel: config.LOG_DEBUG,
watch: false,
browsers: ['ChromeHeadless'],
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: ['--no-sandbox', '--headless', '--disable-gpu', '--disable-web-security', '--remote-debugging-port=9222']
}
},
singleRun: false,
singleRun: true,
restartOnFileChange: true,
browserNoActivityTimeout: 30000
browserNoActivityTimeout: 30000,
browserDisconnectTimeout: 30000,
captureTimeout: 30000,
browserDisconnectTolerance: 3
});
};
11 changes: 7 additions & 4 deletions projects/sync/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,20 @@ module.exports = function (config) {
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
logLevel: config.LOG_DEBUG,
watch: false,
browsers: ['ChromeHeadless'],
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: ['--no-sandbox', '--headless', '--disable-gpu', '--disable-web-security', '--remote-debugging-port=9222']
}
},
singleRun: false,
singleRun: true,
restartOnFileChange: true,
browserNoActivityTimeout: 30000
browserNoActivityTimeout: 30000,
browserDisconnectTimeout: 30000,
captureTimeout: 30000,
browserDisconnectTolerance: 3
});
};
11 changes: 7 additions & 4 deletions projects/templates/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,20 @@ module.exports = function (config) {
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
logLevel: config.LOG_DEBUG,
watch: false,
browsers: ['ChromeHeadless'],
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: ['--no-sandbox', '--headless', '--disable-gpu', '--disable-web-security', '--remote-debugging-port=9222']
}
},
singleRun: false,
singleRun: true,
restartOnFileChange: true,
browserNoActivityTimeout: 30000
browserNoActivityTimeout: 30000,
browserDisconnectTimeout: 50000,
captureTimeout: 50000,
browserDisconnectTolerance: 3
});
};
10 changes: 6 additions & 4 deletions projects/ui/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,20 @@ module.exports = function (config) {
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
logLevel: config.LOG_DEBUG,
watch: false,
browsers: ['ChromeHeadless'],
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: ['--no-sandbox', '--headless', '--disable-gpu', '--disable-web-security', '--remote-debugging-port=9222']
}
},
singleRun: false,
singleRun: true,
restartOnFileChange: true,
browserNoActivityTimeout: 50000,
browserDisconnectTimeout: 50000
browserDisconnectTimeout: 50000,
captureTimeout: 50000,
browserDisconnectTolerance: 3
});
};
Loading