Quick break the "Run single test under cursor" feature of Xcode

Created on 2 Jun 2017  Â·  2Comments  Â·  Source: Quick/Quick

  • [x] I have read CONTRIBUTING and have done my best to follow them.

What did you do?

  • Create an empty new Xcode project, add some print() statements in the default tests, so you know which test you have run.
  • Follow README of Quick to install Quick with CocoaPods.
  • Open the default test file XXXTests.swift, place cursor under any test function, press ⌃⌥⌘ U.

What did you expect to happen?

Only the test function under cursor should be run.

What actually happened instead?

All test functions has run, you can check logs in console to confirm.

Environment

List the software versions you're using:

  • Quick: 1.1.0
  • Nimble: 7.0.0
  • Xcode Version: 8.3.2
  • Swift Version: Xcode Default

Please also mention which package manager you used and its version. Delete the
other package managers in this list:

  • Cocoapods: 1.2.1
enhancement help wanted

Most helpful comment

@angerman: Thank you, indeed that's the solution I'm currently using. But it require code change, which is inconvenient and not flexible.

All 2 comments

You are probably looking for:

https://github.com/Quick/Quick/blob/master/Documentation/en-us/QuickExamplesAndGroups.md#temporarily-running-a-subset-of-focused-examples

@angerman: Thank you, indeed that's the solution I'm currently using. But it require code change, which is inconvenient and not flexible.

Was this page helpful?
0 / 5 - 0 ratings