Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 32234ed

Browse files
authored
Merge pull request #2 from react-native-windows/pipeline
Pipeline
2 parents e626f13 + c3acc83 commit 32234ed

File tree

4 files changed

+45
-3
lines changed

4 files changed

+45
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ node_modules/
66
#Exclude tsc generated files
77
dist/
88

9-
yarn.lock
9+
yarn.lock
10+
11+
example/test-report.xml

example/__tests__/Times.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ describe('Timeout example', () => {
55
// There are two global timers: waitforPageTimeout and waitforTimeout
66
// waitforTimeout is used by By2. When call any WebElement function of By2, it loops until the element is located
77
// waitforPageTimeout is used by PageObject. It defined the default timeout for waitForPageLoaded.
8-
8+
test("Timer testing", () => {
99
Config.setWaitForPageTimeout(100);
1010
expect(Config.getWaitForPageTimeout()).toBe(100);
1111

1212
Config.setWaitForTimeout(100);
1313
expect(Config.getWaitForTimeout()).toBe(100);
14+
});
1415
});

example/azure-pipelines.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
trigger:
2+
- master
3+
4+
pool:
5+
vmImage: 'windows-2019'
6+
7+
steps:
8+
- script: echo Hello, world!
9+
displayName: 'Run example'
10+
11+
- task: CmdLine@2
12+
displayName: yarn install
13+
inputs:
14+
script: yarn install
15+
workingDirectory: example
16+
17+
- task: Windows Application Driver@0
18+
inputs:
19+
OperationType: 'Start'
20+
WADArguments: '127.0.0.1 4723/wd/hub'
21+
22+
- task: CmdLine@2
23+
displayName: yarn run jest
24+
inputs:
25+
script: yarn run jest
26+
workingDirectory: example
27+
28+
- task: Windows Application Driver@0
29+
inputs:
30+
OperationType: 'Stop'
31+
32+
- task: PublishTestResults@2
33+
inputs:
34+
testResultsFormat: 'JUnit'
35+
testResultsFiles: '**/TEST-*.xml'

example/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
"selenium-appium": "^0.0.11",
2222
"selenium-webdriver": "^4.0.0-alpha.4",
2323
"typescript": "^3.5.3",
24-
"appium": "1.14.2"
24+
"appium": "1.14.2",
25+
"jest-junit-reporter": "1.1.0"
26+
},
27+
"jest": {
28+
"testResultsProcessor": "./node_modules/jest-junit-reporter"
2529
}
2630
}

0 commit comments

Comments
 (0)