Run single Test on CI for faster debugging (#896)

* let's disable autocorrection

* waiting some more time in flaky tests and updated the content of a test that was failing

* controlled delay waited a bit moe for the timeline to settle

* try await

* trying with a bit more waiting time after the tap and a slow velocity for the swipe

* let's try waiting more time

* workflow for a single ui test

* las try

* slow swiping tests

* commenting out flaky CI tests, for now we'll just disable them

* better description

* flaky test improvement

* disabling animations that are not needed in UITests

* code that already prevents animations in UI tests

* code improv
This commit is contained in:
Mauro
2023-05-17 18:15:43 +02:00
committed by GitHub
parent 1ff3dfe6ea
commit b0de00a5b5
14 changed files with 111 additions and 83 deletions

View File

@@ -2,7 +2,11 @@ name: UI Tests
on:
workflow_dispatch:
inputs:
test_name:
description: 'If a test name is provided, only that test will be run. Otherwise, all tests will be run. Use the format "ClassName/testName" to run a single test.'
required: false
schedule:
- cron: '0 0 * * 1-5'
@@ -30,12 +34,16 @@ jobs:
${{ runner.os }}-gems-
- name: Setup environment
run:
source ci_scripts/ci_common.sh && setup_github_actions_environment
run: source ci_scripts/ci_common.sh && setup_github_actions_environment
- name: Run tests
run: bundle exec fastlane ui_tests
run: |
if [[ -z "${{ github.event.inputs.test_name }}" ]]; then
bundle exec fastlane ui_tests
else
bundle exec fastlane ui_tests test_name:${{ github.event.inputs.test_name }}
fi
- name: Archive artifacts
uses: actions/upload-artifact@v3
if: always()
@@ -48,4 +56,5 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
flags: uitests
flags: uitests