Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Nov 26, 2024
1 parent 3af62f9 commit 392f831
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ios-browserstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ jobs:

- name: Inject AccessKey
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
OctopusAppTestUITests/OctopusAppTestUITests.swift

- name: Inject Performance Threshold
run: sed -i '.bak' 's:{PERFORMANCE_THRESHOLD_SEC}:0.1:'
OctopusAppTestUITests/OctopusAppTestUITests.swift
OctopusAppTestUITests/BaseTest.swift

- name: XCode Build
run: xcrun xcodebuild build-for-testing
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ios-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ jobs:

- name: Inject Index Performance Threshold
run: sed -i '.bak'
'1,/{INDEX_THRESHOLD_SEC}/s/{INDEX_THRESHOLD_SEC}/${{ matrix.indexPerformanceThresholdSec }}/'
'1,/{INDEX_PERFORMANCE_THRESHOLD_SEC}/s/{INDEX_PERFORMANCE_THRESHOLD_SEC}/${{ matrix.indexPerformanceThresholdSec }}/'
PerformanceTest/PerformanceTest.swift

- name: Inject Search Performance Threshold
run: sed -i '.bak'
'1,/{SEARCH_THRESHOLD_SEC}/s/{SEARCH_THRESHOLD_SEC}/${{ matrix.searchPerformanceThresholdSec }}/'
'1,/{SEARCH_PERFORMANCE_THRESHOLD_SEC}/s/{SEARCH_PERFORMANCE_THRESHOLD_SEC}/${{ matrix.searchPerformanceThresholdSec }}/'
PerformanceTest/PerformanceTest.swift

- name: XCode Build
Expand Down
2 changes: 2 additions & 0 deletions binding/android/OctopusTestApp/octopus-test-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ dependencies {
afterEvaluate {
tasks."mergeDebugAssets".dependsOn "copyParams"
tasks."mergeReleaseAssets".dependsOn "copyParams"
tasks."generateReleaseLintVitalReportModel".dependsOn "copyParams"
tasks."mergeDebugAssets".dependsOn "copyAudio"
tasks."mergeReleaseAssets".dependsOn "copyAudio"
tasks."generateReleaseLintVitalReportModel".dependsOn "copyAudio"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.platform.app.InstrumentationRegistry;

import com.microsoft.appcenter.espresso.Factory;
import com.microsoft.appcenter.espresso.ReportHelper;

import org.junit.After;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -33,8 +28,7 @@

@RunWith(AndroidJUnit4.class)
public class PerformanceTest {
@Rule
public ReportHelper reportHelper = Factory.getReportHelper();

Context testContext;
Context appContext;
AssetManager assetManager;
Expand All @@ -43,11 +37,6 @@ public class PerformanceTest {

int numTestIterations = 30;

@After
public void TearDown() {
reportHelper.label("Stopping App");
}

@Before
public void Setup() throws IOException {
testContext = InstrumentationRegistry.getInstrumentation().getContext();
Expand Down

0 comments on commit 392f831

Please sign in to comment.