aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Timeline/ClientApp/package.json1
-rw-r--r--Timeline/ClientApp/src/TESTS-HeadlessChrome_72.0.3626_(Windows_10.0.0).xml17
-rw-r--r--Timeline/ClientApp/src/karma.conf.js1
-rw-r--r--Timeline/ClientApp/yarn.lock13
-rw-r--r--azure-pipelines.yml12
5 files changed, 44 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: {
diff --git a/Timeline/ClientApp/yarn.lock b/Timeline/ClientApp/yarn.lock
index 40e6a1ca..a44a8fda 100644
--- a/Timeline/ClientApp/yarn.lock
+++ b/Timeline/ClientApp/yarn.lock
@@ -4136,6 +4136,14 @@ karma-jasmine@^2.0.1:
dependencies:
jasmine-core "^3.3"
+karma-junit-reporter@^1.2.0:
+ version "1.2.0"
+ resolved "http://registry.npm.taobao.org/karma-junit-reporter/download/karma-junit-reporter-1.2.0.tgz#4f9c40cedfb1a395f8aef876abf96189917c6396"
+ integrity sha1-T5xAzt+xo5X4rvh2q/lhiZF8Y5Y=
+ dependencies:
+ path-is-absolute "^1.0.0"
+ xmlbuilder "8.2.2"
+
karma-source-map-support@1.3.0:
version "1.3.0"
resolved "http://registry.npm.taobao.org/karma-source-map-support/download/karma-source-map-support-1.3.0.tgz#36dd4d8ca154b62ace95696236fae37caf0a7dde"
@@ -7667,6 +7675,11 @@ xml2js@^0.4.17:
sax ">=0.6.0"
xmlbuilder "~9.0.1"
+xmlbuilder@8.2.2:
+ version "8.2.2"
+ resolved "http://registry.npm.taobao.org/xmlbuilder/download/xmlbuilder-8.2.2.tgz#69248673410b4ba42e1a6136551d2922335aa773"
+ integrity sha1-aSSGc0ELS6QuGmE2VR0pIjNap3M=
+
xmlbuilder@~9.0.1:
version "9.0.7"
resolved "http://registry.npm.taobao.org/xmlbuilder/download/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d"
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index b67afdc2..c7c4047a 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -24,6 +24,18 @@ steps:
testRunner: VSTest
testResultsFiles: '**/*.trx'
+- script: yarn install
+ workingDirectory: Timeline/ClientApp
+
+- script: yarn run test --no-watch --browsers=ChromeHeadless --reporters junit
+ workingDirectory: Timeline/ClientApp
+
+- task: PublishTestResults@2
+ condition: succeededOrFailed()
+ inputs:
+ testRunner: JUnit
+ testResultsFiles: '**/TESTS-*.xml'
+
- script: dotnet publish Timeline/Timeline.csproj --configuration $(buildConfiguration) --output ./publish/
- task: PublishPipelineArtifact@0