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

Support parallel test execution #609

Merged
merged 81 commits into from
May 28, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
ae9c471
switch to e2e tests to jest
Mar 6, 2018
57ef873
downgrade test project to RN51
Mar 6, 2018
c54109e
wait for device based on bootstatus
Feb 20, 2018
f5cd1b9
introduce findDevicesUDID and use in findDeviceUDID
Feb 20, 2018
3c26649
remove redundant check
Mar 6, 2018
bdf4eb8
support multiple workers. for now set to 1
Feb 20, 2018
fb96349
device registry
Mar 6, 2018
bf31acb
device registry
Mar 6, 2018
5c5d923
fix device registry race condition
Mar 6, 2018
f18c34c
move maxTestWorkers param to detox config
Mar 6, 2018
5004898
clean up
Mar 4, 2018
74849ae
-forceExit
Mar 6, 2018
4251edc
error when no runtime is available
Mar 7, 2018
3bc6518
use dot notation
Mar 7, 2018
f839c3d
move lock file to ~/Library/Detox
Mar 7, 2018
fa268cd
adjust lock file retry options
Mar 7, 2018
d5e7dab
use functions instead of consts when declaring functions
Mar 7, 2018
06b917e
use const for detox library root path
Mar 7, 2018
d3dcdfb
Reset EarlGrey submodule
rotemmiz Mar 7, 2018
caa6fc8
dummy commit
Mar 7, 2018
a26e200
verbose postinstall
rotemmiz Mar 7, 2018
08abe3f
Merge branch 'master' into test-parallelization
rotemmiz Mar 7, 2018
70cb9d5
simplified root path to fix Android build
Mar 8, 2018
4c72215
Revert "simplified root path to fix Android build"
Mar 8, 2018
406740e
simplified root path to fix Android build
Mar 8, 2018
04b6243
dummy commit
Mar 10, 2018
dc7f70a
Merge branch 'master' into test-parallelization
Mar 10, 2018
ddbdd06
run e2e w/ parallelization in ci
Mar 10, 2018
7d12cd9
Merge branch 'master' into test-parallelization
Mar 10, 2018
712e6de
dummy commit
Mar 10, 2018
9b0c50a
temp - added troubleshooting logs
Mar 11, 2018
bc79553
Revert "temp - added troubleshooting logs"
Mar 11, 2018
a080a4b
Merge branch 'master' into test-parallelization
Mar 12, 2018
7de97ac
merge
Mar 12, 2018
00c40d3
make sure single works
Mar 12, 2018
3630f5a
fix clear lock file path
Mar 13, 2018
646168c
improve closed socket error message
Mar 15, 2018
73c27e1
Merge branch 'master' into test-parallelization
rotemmiz May 1, 2018
f40373f
WIP
rotemmiz May 2, 2018
5dd5d27
WIP
rotemmiz May 7, 2018
56f208d
WIP
rotemmiz May 8, 2018
9a388b2
Merge branch 'master' into test-parallelization
rotemmiz May 8, 2018
c48d49d
WIP
rotemmiz May 8, 2018
320113c
trigger build
rotemmiz May 8, 2018
ffc4e20
Trigger build
yershalom May 8, 2018
688a31b
Trigger build
yershalom May 8, 2018
1f21ca4
waitFor timeout increased
rotemmiz May 8, 2018
0f9007f
maxWorkers=2
rotemmiz May 8, 2018
52d0f86
Add line for trigger build
yershalom May 8, 2018
5b11bc9
Revert "Add line for trigger build"
yershalom May 8, 2018
d088827
last trigger build
yershalom May 8, 2018
8eea0a7
Revert "last trigger build"
yershalom May 8, 2018
cdd18b0
Update ci.ios.sh
yershalom May 8, 2018
920faba
Add line to ci ios
yershalom May 8, 2018
6931a0e
Fix platfrom for jest
yershalom May 9, 2018
7547c99
Fix jest invert platform
yershalom May 9, 2018
0f64ffa
Trigger build
yershalom May 9, 2018
6267fe2
use detox-test to cleanup lockfile
rotemmiz May 12, 2018
a4484dd
fix waitFor screen, should not be flaky anymore
rotemmiz May 12, 2018
57a7b38
added unit test for a new edge case
rotemmiz May 12, 2018
efb39a6
better visiblity on messages passing on a closed ws
rotemmiz May 12, 2018
a3c9e1e
WAT
rotemmiz May 12, 2018
c9c4089
only call currentStatus if ws is open
rotemmiz May 12, 2018
9b51f72
increase verbosity for debug purposes
rotemmiz May 12, 2018
3a082bc
per platfrom app data path
rotemmiz May 13, 2018
d76a43a
ensure file exists, create including path if needed
rotemmiz May 13, 2018
3f14a38
always query applesimutils byOS
rotemmiz May 14, 2018
f1d8b48
Triggering PR build
yershalom May 14, 2018
c0393b0
print stderrs of after all retries failed
rotemmiz May 14, 2018
86b1b8a
print stderrs of after all retries failed
rotemmiz May 14, 2018
1084c20
Revert "Triggering PR build"
rotemmiz May 14, 2018
87c357f
Trigger PR after fixed jenkins
yershalom May 14, 2018
e6743da
Revert "Trigger PR after fixed jenkins"
yershalom May 14, 2018
0c73826
Last try trigger PR
yershalom May 14, 2018
00cd14b
Revert "Last try trigger PR"
yershalom May 14, 2018
dd79249
Revert "Revert "Last try trigger PR""
rotemmiz May 15, 2018
d91bd9c
Add empty line to package.json for triggering build
yershalom May 15, 2018
f7923af
Merge branch 'master' into test-parallelization
rotemmiz May 21, 2018
c6c90f4
update xcode
rotemmiz May 22, 2018
5830c96
Merge branch 'master' into test-parallelization
rotemmiz May 28, 2018
c6357ae
MOAR retries
rotemmiz May 28, 2018
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: 0 additions & 1 deletion detox/test/.watchmanconfig

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions detox/test/e2e/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"setupTestFrameworkScriptFile" : "./helpers/init.js",
"bail": true,
"verbose": true,
"forceExit": true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should validate Detox doesn't leave anything open, and that everything is being closed correctly.
Please remove forceExit

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should validate Detox doesn't leave anything open, and that everything is being closed correctly.
Please remove forceExit

}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('StressRoot', () => {
await element(by.text('Switch Root')).tap();
});

after(async () => {
afterAll(async () => {
await device.relaunchApp();
});

Expand Down
7 changes: 7 additions & 0 deletions detox/test/e2e/helpers/init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const detox = require('detox');
const config = require('../../package.json').detox;
jest.setTimeout(480000);

beforeAll(async () => {
await detox.init(config);
});
18 changes: 0 additions & 18 deletions detox/test/e2e/init.js

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ const MockServer = require('../mock-server/mock-server');
describe('Network Synchronization', () => {
let mockServer = new MockServer();

before(async () => {
beforeAll(async () => {
mockServer.init();
});

after( () => {
afterAll( () => {
mockServer.close();
});

Expand Down
3 changes: 0 additions & 3 deletions detox/test/e2e/mocha.opts

This file was deleted.

File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion detox/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
"devDependencies": {
"detox": "^7.0.0",
"express": "^4.15.3",
"jest": "^22.3.0",
"lodash": "^4.14.1",
"mocha": "^4.0.0"
},
"detox": {
"specs": "e2e",
"test-runner": "jest",
"__session": {
"server": "ws://localhost:8099",
"sessionId": "test"
Expand Down Expand Up @@ -63,4 +65,4 @@
}
}
}
}
}