forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Expensify#29656 from margelo/osp/separate-test-runs
[No QA]Separate e2e test runs
- Loading branch information
Showing
13 changed files
with
285 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
version: 0.1 | ||
|
||
phases: | ||
install: | ||
commands: | ||
# Install correct version of node | ||
- export NVM_DIR=$HOME/.nvm | ||
- . $NVM_DIR/nvm.sh | ||
- nvm install 16.15.1 | ||
- nvm use 16.15.1 | ||
|
||
# Reverse ports using AWS magic | ||
- PORT=4723 | ||
- IP_ADDRESS=$(ip -4 addr show eth0 | grep -Po "(?<=inet\s)\d+(\.\d+){3}") | ||
- reverse_values="{\"ip_address\":\"$IP_ADDRESS\",\"local_port\":\"$PORT\",\"remote_port\":\"$PORT\"}" | ||
- "curl -H \"Content-Type: application/json\" -X POST -d \"$reverse_values\" http://localhost:31007/reverse_forward_tcp" | ||
- adb reverse tcp:$PORT tcp:$PORT | ||
|
||
test: | ||
commands: | ||
- cd zip | ||
- npm install underscore | ||
- node e2e/testRunner.js -- --skipInstallDeps --buildMode "skip" --skipCheckout --label delta --appPath app-e2eRelease-delta.apk | ||
|
||
artifacts: | ||
- $WORKING_DIRECTORY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
module.exports = { | ||
APP_PACKAGE: 'com.expensify.chat.dev', | ||
|
||
WARM_UP_RUNS: 1, | ||
APP_PACKAGE: 'com.expensify.chat.adhoc', | ||
APP_PATH: './android/app/build/outputs/apk/e2e/release/app-e2e-release.apk', | ||
RUNS: 8, | ||
APP_PATHS: { | ||
baseline: './android/app/build/outputs/apk/e2e/release/app-e2e-release.apk', | ||
compare: './android/app/build/outputs/apk/e2e/release/app-e2e-release.apk', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const compare = require('./compare/compare'); | ||
const {OUTPUT_DIR} = require('./config'); | ||
|
||
const args = process.argv.slice(2); | ||
|
||
let mainPath = `${OUTPUT_DIR}/main.json`; | ||
if (args.includes('--mainPath')) { | ||
mainPath = args[args.indexOf('--mainPath') + 1]; | ||
} | ||
|
||
let deltaPath = `${OUTPUT_DIR}/delta.json`; | ||
if (args.includes('--deltaPath')) { | ||
deltaPath = args[args.indexOf('--deltaPath') + 1]; | ||
} | ||
|
||
let outputPath = `${OUTPUT_DIR}/output.md`; | ||
if (args.includes('--outputPath')) { | ||
outputPath = args[args.indexOf('--outputPath') + 1]; | ||
} | ||
|
||
async function run() { | ||
await compare(mainPath, deltaPath, outputPath, 'all'); | ||
|
||
process.exit(0); | ||
} | ||
|
||
run(); |
Oops, something went wrong.