mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Stop asserting integration test run time & move to performance testing runner. (#1132)
* Stop asserting integration test run time. * Move integration testing to the perf runner.
This commit is contained in:
@@ -2,14 +2,14 @@ name: Integration tests
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 * * 1-5'
|
- cron: '0 * * * *'
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
integration_tests:
|
integration_tests:
|
||||||
name: Integration Tests
|
name: Integration Tests
|
||||||
runs-on: macos-13
|
runs-on: perf-only
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Only allow a single run of this workflow on each branch, automatically cancelling older runs.
|
# Only allow a single run of this workflow on each branch, automatically cancelling older runs.
|
||||||
@@ -55,7 +55,6 @@ jobs:
|
|||||||
retention-days: 2
|
retention-days: 2
|
||||||
if-no-files-found: ignore
|
if-no-files-found: ignore
|
||||||
|
|
||||||
|
|
||||||
- name: Checkout gh-pages branch (for perf stats)
|
- name: Checkout gh-pages branch (for perf stats)
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
@@ -30,8 +30,5 @@ class ApplicationTests: XCTestCase {
|
|||||||
XCTFail("Couldn't retrieve app launch duration")
|
XCTFail("Couldn't retrieve app launch duration")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let expectedDuration = 10.0
|
|
||||||
XCTAssertLessThanOrEqual(actualDuration, expectedDuration)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
class LoginTests: XCTestCase {
|
class LoginTests: XCTestCase {
|
||||||
let expectedDuration = 100.0
|
|
||||||
|
|
||||||
func testLoginFlow() throws {
|
func testLoginFlow() throws {
|
||||||
let parser = TestMeasurementParser()
|
let parser = TestMeasurementParser()
|
||||||
parser.capture(testCase: self) {
|
parser.capture(testCase: self) {
|
||||||
@@ -31,8 +29,6 @@ class LoginTests: XCTestCase {
|
|||||||
XCTFail("Couldn't retrieve duration")
|
XCTFail("Couldn't retrieve duration")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
XCTAssertLessThanOrEqual(actualDuration, expectedDuration)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private func runLoginLogoutFlow() {
|
private func runLoginLogoutFlow() {
|
||||||
@@ -79,7 +75,9 @@ class LoginTests: XCTestCase {
|
|||||||
// Wait for login to finish
|
// Wait for login to finish
|
||||||
let doesNotExistPredicate = NSPredicate(format: "exists == 0")
|
let doesNotExistPredicate = NSPredicate(format: "exists == 0")
|
||||||
expectation(for: doesNotExistPredicate, evaluatedWith: nextButton)
|
expectation(for: doesNotExistPredicate, evaluatedWith: nextButton)
|
||||||
waitForExpectations(timeout: expectedDuration)
|
|
||||||
|
// timeout is huge because we're waiting for server actions as well.
|
||||||
|
waitForExpectations(timeout: 300.0)
|
||||||
|
|
||||||
// Handle save password sheet
|
// Handle save password sheet
|
||||||
let savePasswordButton = app.buttons["Save Password"]
|
let savePasswordButton = app.buttons["Save Password"]
|
||||||
|
|||||||
+2
-1
@@ -151,7 +151,8 @@ lane :integration_tests do
|
|||||||
scheme: "IntegrationTests",
|
scheme: "IntegrationTests",
|
||||||
devices: ["iPhone 13 Pro"],
|
devices: ["iPhone 13 Pro"],
|
||||||
ensure_devices_found: true,
|
ensure_devices_found: true,
|
||||||
result_bundle: true
|
result_bundle: true,
|
||||||
|
include_simulator_logs: true
|
||||||
)
|
)
|
||||||
|
|
||||||
slather(
|
slather(
|
||||||
|
|||||||
Reference in New Issue
Block a user