Skip to content

Commit

Permalink
try fix - skip logic
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Nov 13, 2024
1 parent f35a13b commit 499a6f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void intentsTeardown() {
}

@Test
public void testPorcupine() {
public void testCobra() {
onView(withId(R.id.testButton)).perform(click());
onView(withId(R.id.testResult)).perform(waitForText("Passed", 60000));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ import Cobra
class PerformanceTest: XCTestCase {
let accessKey: String = "{TESTING_ACCESS_KEY_HERE}"
let iterationString: String = "{NUM_TEST_ITERATIONS}"
let thresholdString: String = "0.001"
let thresholdString: String = "{PERFORMANCE_THRESHOLD_SEC}"

override func setUp() {
super.setUp()
continueAfterFailure = false
}

func testPerformance() throws {
try XCTSkipIf(thresholdString == "{PERFORMANCE_THRESHOLD_SEC}")
try XCTSkipIf(thresholdString == nil)

let numTestIterations = Int(iterationString) ?? 100
let performanceThresholdSec = Double(thresholdString)
Expand Down

0 comments on commit 499a6f4

Please sign in to comment.