Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make beforeEach a throws method.  #1122

@tahirmt

Description

@tahirmt
  • I have read CONTRIBUTING and have done my best to follow them.

What did you do?

I would like to be able to use throwing calls in beforeEach

beforeEach {
    let someValue = try XCTUnwrap(someOptional)
    // do something with someValue
}

What did you expect to happen?

Please replace this with what you expected to happen.

What actually happened instead?

Please replace this with what happened instead.

Environment

List the software versions you're using:

  • Quick: 4.0.0
  • Nimble: 9.2.0
  • Xcode Version: * 13.3 (13E113)* (Open Xcode; In menubar: Xcode > About Xcode)
  • Swift Version: * Xcode Default* (Open Xcode Preferences; Components > Toolchains. If none, use Xcode Default.)

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

  • CocoaPods: 1.11.2 (Use pod --version in Terminal)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions