Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test suite skipping 14 of 15 tests in wings-quest exercise #726

Open
Gitspammed opened this issue Feb 29, 2024 · 1 comment
Open

Test suite skipping 14 of 15 tests in wings-quest exercise #726

Gitspammed opened this issue Feb 29, 2024 · 1 comment

Comments

@Gitspammed
Copy link
Contributor

When testing a passing code solution for wings-quest, the test appears to skip most of the tests. (Or maybe I'm missing something and everything is fine?)

I haven't tried to debug; just wondering if this should raise any eyebrows:

Running tests via `swift test`

Building for debugging...
[3/3] Linking WingsQuestPackageTests
Build complete! (1.30s)
Test Suite 'All tests' started at 2024-02-28 22:52:13.582.
Test Suite 'WingsQuestPackageTests.xctest' started at 2024-02-28 22:52:13.583.
Test Suite 'TaskBonusPoints' started at 2024-02-28 22:52:13.583.
Test Case '-[WingsQuestTests.TaskBonusPoints testGetsBonusPoints]' started.
Test Case '-[WingsQuestTests.TaskBonusPoints testGetsBonusPoints]' passed (0.001 seconds).
Test Case '-[WingsQuestTests.TaskBonusPoints testNoBonusPointsWhenNotPowerUpActive]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:15: -[WingsQuestTests.TaskBonusPoints testNoBonusPointsWhenNotPowerUpActive] : Test skipped
Test Case '-[WingsQuestTests.TaskBonusPoints testNoBonusPointsWhenNotPowerUpActive]' skipped (0.004 seconds).
Test Case '-[WingsQuestTests.TaskBonusPoints testNoBonusPointsWhenNotTouchingOtherBird]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:22: -[WingsQuestTests.TaskBonusPoints testNoBonusPointsWhenNotTouchingOtherBird] : Test skipped
Test Case '-[WingsQuestTests.TaskBonusPoints testNoBonusPointsWhenNotTouchingOtherBird]' skipped (0.001 seconds).
Test Case '-[WingsQuestTests.TaskBonusPoints testNoBonusPointsWhenNotTouchingOtherBirdnorPowerUp]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:29: -[WingsQuestTests.TaskBonusPoints testNoBonusPointsWhenNotTouchingOtherBirdnorPowerUp] : Test skipped
Test Case '-[WingsQuestTests.TaskBonusPoints testNoBonusPointsWhenNotTouchingOtherBirdnorPowerUp]' skipped (0.000 seconds).
Test Suite 'TaskBonusPoints' passed at 2024-02-28 22:52:13.590.
	 Executed 4 tests, with 3 tests skipped and 0 failures (0 unexpected) in 0.006 (0.006) seconds
Test Suite 'TaskLose' started at 2024-02-28 22:52:13.590.
Test Case '-[WingsQuestTests.TaskLose testDontLoseWhenNotTouchingAndPowerUp]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:82: -[WingsQuestTests.TaskLose testDontLoseWhenNotTouchingAndPowerUp] : Test skipped
Test Case '-[WingsQuestTests.TaskLose testDontLoseWhenNotTouchingAndPowerUp]' skipped (0.000 seconds).
Test Case '-[WingsQuestTests.TaskLose testDontLoseWhenNotTouching]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:89: -[WingsQuestTests.TaskLose testDontLoseWhenNotTouching] : Test skipped
Test Case '-[WingsQuestTests.TaskLose testDontLoseWhenNotTouching]' skipped (0.000 seconds).
Test Case '-[WingsQuestTests.TaskLose testDontLoseWhenPowerUp]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:75: -[WingsQuestTests.TaskLose testDontLoseWhenPowerUp] : Test skipped
Test Case '-[WingsQuestTests.TaskLose testDontLoseWhenPowerUp]' skipped (0.000 seconds).
Test Case '-[WingsQuestTests.TaskLose testLose]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:68: -[WingsQuestTests.TaskLose testLose] : Test skipped
Test Case '-[WingsQuestTests.TaskLose testLose]' skipped (0.000 seconds).
Test Suite 'TaskLose' passed at 2024-02-28 22:52:13.592.
	 Executed 4 tests, with 4 tests skipped and 0 failures (0 unexpected) in 0.002 (0.002) seconds
Test Suite 'TaskScore' started at 2024-02-28 22:52:13.592.
Test Case '-[WingsQuestTests.TaskScore testGetScore]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:38: -[WingsQuestTests.TaskScore testGetScore] : Test skipped
Test Case '-[WingsQuestTests.TaskScore testGetScore]' skipped (0.000 seconds).
Test Case '-[WingsQuestTests.TaskScore testGetScoreWhenNotTouchingPowerUp]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:52: -[WingsQuestTests.TaskScore testGetScoreWhenNotTouchingPowerUp] : Test skipped
Test Case '-[WingsQuestTests.TaskScore testGetScoreWhenNotTouchingPowerUp]' skipped (0.000 seconds).
Test Case '-[WingsQuestTests.TaskScore testGetScoreWhenNotTouchingSeed]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:45: -[WingsQuestTests.TaskScore testGetScoreWhenNotTouchingSeed] : Test skipped
Test Case '-[WingsQuestTests.TaskScore testGetScoreWhenNotTouchingSeed]' skipped (0.000 seconds).
Test Case '-[WingsQuestTests.TaskScore testNoScoreWhenBothIsFalse]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:59: -[WingsQuestTests.TaskScore testNoScoreWhenBothIsFalse] : Test skipped
Test Case '-[WingsQuestTests.TaskScore testNoScoreWhenBothIsFalse]' skipped (0.000 seconds).
Test Suite 'TaskScore' passed at 2024-02-28 22:52:13.594.
	 Executed 4 tests, with 4 tests skipped and 0 failures (0 unexpected) in 0.002 (0.002) seconds
Test Suite 'TaskWin' started at 2024-02-28 22:52:13.594.
Test Case '-[WingsQuestTests.TaskWin testDontWinIfLost]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:105: -[WingsQuestTests.TaskWin testDontWinIfLost] : Test skipped
Test Case '-[WingsQuestTests.TaskWin testDontWinIfLost]' skipped (0.000 seconds).
Test Case '-[WingsQuestTests.TaskWin testWin]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:98: -[WingsQuestTests.TaskWin testWin] : Test skipped
Test Case '-[WingsQuestTests.TaskWin testWin]' skipped (0.000 seconds).
Test Case '-[WingsQuestTests.TaskWin testWinIfPickedUpAllSeedsAndTouchingOtherBird]' started.
/Users/macbook2014/Exercism/swift/wings-quest/Tests/WingsQuestTests/WingsQuestTests.swift:112: -[WingsQuestTests.TaskWin testWinIfPickedUpAllSeedsAndTouchingOtherBird] : Test skipped
Test Case '-[WingsQuestTests.TaskWin testWinIfPickedUpAllSeedsAndTouchingOtherBird]' skipped (0.000 seconds).
Test Suite 'TaskWin' passed at 2024-02-28 22:52:13.595.
	 Executed 3 tests, with 3 tests skipped and 0 failures (0 unexpected) in 0.001 (0.001) seconds
Test Suite 'WingsQuestPackageTests.xctest' passed at 2024-02-28 22:52:13.595.
	 Executed 15 tests, with 14 tests skipped and 0 failures (0 unexpected) in 0.010 (0.012) seconds
Test Suite 'All tests' passed at 2024-02-28 22:52:13.595.
	 Executed 15 tests, with 14 tests skipped and 0 failures (0 unexpected) in 0.010 (0.013) seconds```
@Person2099
Copy link
Contributor

You will have to change the try XCTSkipIf(true) to try XCTSkipIf(false).

See here https://exercism.org/docs/tracks/swift/tests

For concept exercises, when you got a test passing change the true in the XCTSkipIf to false to enable the next test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants