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

[SR-6249] Asynchronous testing missing features #364

Closed
Bouke opened this issue Oct 28, 2017 · 3 comments
Closed

[SR-6249] Asynchronous testing missing features #364

Bouke opened this issue Oct 28, 2017 · 3 comments
Assignees

Comments

@Bouke
Copy link

Bouke commented Oct 28, 2017

Previous ID SR-6249
Radar None
Original Reporter @Bouke
Type Bug
Status Resolved
Resolution Duplicate
Environment

Ubuntu 14.04
swift-4.0-RELEASE

Additional Detail from JIRA
Votes 1
Component/s XCTest
Labels Bug
Assignee @stmontgomery
Priority Medium

md5: a019a076a8d7b6b1c92f11d2c6962ab1

duplicates:

  • SR-7615 swift-corelibs-xctest missing XCTWaiter

Issue Description:

The following API / features on XCTestExpectation are missing:

class XCTestExpectation {
    var expectationDescription: String { get set }
    var expectedFulfillmentCount: Int { get set }
    var assertForOverFulfill: Bool { get set }
    var isInverted: Bool { get set }
}

The following API / features are missing on XCTest:

class XCTest {
    func wait(for: [XCTestExpectation], timeout: TimeInterval)
    func wait(for: [XCTestExpectation], timeout: TimeInterval, enforceOrder: Bool)
}

There might be more, but my test cases broke on the linux build because of these.

@belkadan
Copy link

belkadan commented Nov 1, 2017

cc @briancroom

@swift-ci
Copy link

swift-ci commented Mar 3, 2018

Comment by Jinyu Perwyl Liu (JIRA)

@belkadan I am new to here, May I know if this has been fixed? It seems to be ...

@stmontgomery
Copy link
Contributor

I have implemented these as part of SR-7615. Apologies for the reverse dupe, but this report focused on the individual XCTestExpectation APIs which is more narrow in scope, whereas SR-7615 was about the larger XCTWaiter cluster of API, which is why I tracked my work there.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 9, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants