diff options
author | crupest <crupest@outlook.com> | 2019-02-22 00:14:24 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-02-22 00:14:24 +0800 |
commit | afd5851c6de944cc637e7de3410cf0f3adfdd6db (patch) | |
tree | f0302a26f012ef9c1c9ba454e1696f9200233e39 /Timeline/ClientApp | |
parent | b694d7a3e1b04bb942e5ba8224762d706f98a371 (diff) | |
download | timeline-afd5851c6de944cc637e7de3410cf0f3adfdd6db.tar.gz timeline-afd5851c6de944cc637e7de3410cf0f3adfdd6db.tar.bz2 timeline-afd5851c6de944cc637e7de3410cf0f3adfdd6db.zip |
Add test CI.
Diffstat (limited to 'Timeline/ClientApp')
-rw-r--r-- | Timeline/ClientApp/package.json | 1 | ||||
-rw-r--r-- | Timeline/ClientApp/src/TESTS-HeadlessChrome_72.0.3626_(Windows_10.0.0).xml | 17 | ||||
-rw-r--r-- | Timeline/ClientApp/src/karma.conf.js | 1 |
3 files changed, 19 insertions, 0 deletions
diff --git a/Timeline/ClientApp/package.json b/Timeline/ClientApp/package.json index 205874e5..9d948004 100644 --- a/Timeline/ClientApp/package.json +++ b/Timeline/ClientApp/package.json @@ -46,6 +46,7 @@ "karma-coverage-istanbul-reporter": "^2.0.4", "karma-jasmine": "^2.0.1", "karma-jasmine-html-reporter": "^1.4.0", + "karma-junit-reporter": "^1.2.0", "tslint": "^5.12.1", "typescript": "~3.2.4" }, diff --git a/Timeline/ClientApp/src/TESTS-HeadlessChrome_72.0.3626_(Windows_10.0.0).xml b/Timeline/ClientApp/src/TESTS-HeadlessChrome_72.0.3626_(Windows_10.0.0).xml new file mode 100644 index 00000000..ecf396fa --- /dev/null +++ b/Timeline/ClientApp/src/TESTS-HeadlessChrome_72.0.3626_(Windows_10.0.0).xml @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<testsuite name="HeadlessChrome 72.0.3626 (Windows 10.0.0)" package="" timestamp="2019-02-21T16:12:41" id="0" hostname="crupestcomputer" tests="6" errors="0" failures="0" time="0.146"> + <properties> + <property name="browser.fullName" value="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/72.0.3626.109 Safari/537.36"/> + </properties> + <testcase name="TodoListPageComponent should hide progress bar after loading" time="0.028" classname="HeadlessChrome_72_0_3626_(Windows_10_0_0).TodoListPageComponent"/> + <testcase name="TodoListPageComponent should show progress bar during loading" time="0.024" classname="HeadlessChrome_72_0_3626_(Windows_10_0_0).TodoListPageComponent"/> + <testcase name="TodoListServiceService should work well" time="0.011" classname="HeadlessChrome_72_0_3626_(Windows_10_0_0).TodoListServiceService"/> + <testcase name="TodoListServiceService should be created" time="0.005" classname="HeadlessChrome_72_0_3626_(Windows_10_0_0).TodoListServiceService"/> + <testcase name="HomeComponent should create" time="0.011" classname="HeadlessChrome_72_0_3626_(Windows_10_0_0).HomeComponent"/> + <testcase name="TodoListPageComponent should create" time="0.067" classname="HeadlessChrome_72_0_3626_(Windows_10_0_0).TodoListPageComponent"/> + <system-out> + <![CDATA[ +]]> + </system-out> + <system-err/> +</testsuite>
\ No newline at end of file diff --git a/Timeline/ClientApp/src/karma.conf.js b/Timeline/ClientApp/src/karma.conf.js index 4a9730b9..775e624c 100644 --- a/Timeline/ClientApp/src/karma.conf.js +++ b/Timeline/ClientApp/src/karma.conf.js @@ -10,6 +10,7 @@ module.exports = function (config) { require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage-istanbul-reporter'), + require('karma-junit-reporter'), require('@angular-devkit/build-angular/plugins/karma') ], client: { |