Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 7 additions & 2 deletions .detoxrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
/** @type {Detox.DetoxConfig} */
module.exports = {
artifacts: {
rootDir: "./artifacts/screenshots",
rootDir: "./artifacts",
plugins: {
screenshot: {
shouldTakeAutomaticSnapshots: true,
keepOnlyFailedTestsArtifacts: true,
takeWhen: {
testStart: false,
testDone: false,
}
},
},
video: {
enabled: true, // Enable video recording
keepOnlyFailedTestsArtifacts: true, // Keep only failed tests' videos
},
},
},

testRunner: {
args: {
$0: 'jest',
Expand Down
8 changes: 4 additions & 4 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -746,15 +746,15 @@ workflows:
- content: |-
#!/usr/bin/env bash
set -ex
cp -r "$BITRISE_SOURCE_DIR/artifacts/screenshots" "$BITRISE_DEPLOY_DIR"
cp -r "$BITRISE_SOURCE_DIR/artifacts" "$BITRISE_DEPLOY_DIR"
- deploy-to-bitrise-io@2.3:
title: Deploy test screenshots
is_always_run: true
run_if: .IsBuildFailed
inputs:
- deploy_path: $BITRISE_DEPLOY_DIR
- is_compress: true
- zip_name: E2E_Android_Failure_Screenshots
- zip_name: E2E_Android_Failure_Artifacts
meta:
bitrise.io:
machine_type_id: elite-xl
Expand Down Expand Up @@ -1004,15 +1004,15 @@ workflows:
- content: |-
#!/usr/bin/env bash
set -ex
cp -r "$BITRISE_SOURCE_DIR/artifacts/screenshots" "$BITRISE_DEPLOY_DIR"
cp -r "$BITRISE_SOURCE_DIR/artifacts" "$BITRISE_DEPLOY_DIR"
- deploy-to-bitrise-io@2.3:
is_always_run: true
run_if: .IsBuildFailed
title: Deploy test screenshots
inputs:
- deploy_path: $BITRISE_DEPLOY_DIR
- is_compress: true
- zip_name: 'E2E_IOS_Failure_Screenshots'
- zip_name: 'E2E_IOS_Failure_Artifacts'
start_e2e_tests:
steps:
- build-router-start@0:
Expand Down
Loading