Skip to content

Commit

Permalink
disable flaky testOutOfNetwork; move all disabled tests to test plan
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuatbrown committed Jun 4, 2024
1 parent 636b555 commit aebabca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 3 additions & 9 deletions NosTests/Controller/SocialGraphTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ final class SocialGraphTests: CoreDataTestCase {
}

/// The `XCTExpectFailure` below does _not_ work in CI. That is, when the test fails, CI still fails.
/// Since all tests must start with the word "test", prefixing it with "disable" is a clear way to disable it
/// until we can fix the intermittent failure.
func disable_testOneFollower() async throws {
func testOneFollower() async throws {
XCTExpectFailure("This test is failing intermittently, see #671", options: .nonStrict())

// Arrange
Expand All @@ -44,9 +42,7 @@ final class SocialGraphTests: CoreDataTestCase {
}

/// The `XCTExpectFailure` below does _not_ work in CI. That is, when the test fails, CI still fails.
/// Since all tests must start with the word "test", prefixing it with "disable" is a clear way to disable it
/// until we can fix the intermittent failure.
func disable_testFollow() async throws {
func testFollow() async throws {
XCTExpectFailure("This test is failing intermittently, see #671", options: .nonStrict())

// Arrange
Expand All @@ -73,9 +69,7 @@ final class SocialGraphTests: CoreDataTestCase {
}

/// The `XCTExpectFailure` below does _not_ work in CI. That is, when the test fails, CI still fails.
/// Since all tests must start with the word "test", prefixing it with "disable" is a clear way to disable it
/// until we can fix the intermittent failure.
func disable_testTwoFollows() async throws {
func testTwoFollows() async throws {
XCTExpectFailure("This test is failing intermittently, see #671", options: .nonStrict())

// Arrange
Expand Down
6 changes: 6 additions & 0 deletions NosTests/UnitTests.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
},
"testTargets" : [
{
"skippedTests" : [
"SocialGraphTests\/testFollow()",
"SocialGraphTests\/testOneFollower()",
"SocialGraphTests\/testOutOfNetwork()",
"SocialGraphTests\/testTwoFollows()"
],
"target" : {
"containerPath" : "container:Nos.xcodeproj",
"identifier" : "C9DEBFE3298941020078B43A",
Expand Down

0 comments on commit aebabca

Please sign in to comment.