-
-
Notifications
You must be signed in to change notification settings - Fork 602
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
Introduce the require dsl. For when you need the assertion to pass before continuing #1103
Commits on Nov 30, 2023
-
Introduce the require-dsl. expect, but it returns the result of the e…
…xpression As implied, this is basically a copy-paste of the functionality of expect. It's not complete, and it's not well-tested. But it gets the idea across. Future work is cleaning this up, backfilling tests for features (such as the unwrap function), and adding support for polling requirements (i.e. toEventually). Other than functionality, require also files the errorThrown issue type with XCTest, whereas expect files the assertionFailed issue type. This has minor differences that are mostly semantics. Also, in addition to the require dsl, this also adds unwrap, which is a shorthand for `require(...).toNot(beNil())`.
Configuration menu - View commit details
-
Copy full SHA for 8a4a912 - Browse repository at this point
Copy the full SHA 8a4a912View commit details
Commits on Dec 12, 2023
-
Backfill some tests for requirement
Support async, but not yet polling.
Configuration menu - View commit details
-
Copy full SHA for 5824149 - Browse repository at this point
Copy the full SHA 5824149View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd7cd69 - Browse repository at this point
Copy the full SHA fd7cd69View commit details -
Oh, gosh. This is terrible. I think a cleaner way to do this would be to change MatcherResult to also store the most recent value. But that would be a breaking change, and might require updating existing matchers, so... no.
Configuration menu - View commit details
-
Copy full SHA for 5fdf899 - Browse repository at this point
Copy the full SHA 5fdf899View commit details
Commits on Dec 18, 2023
-
require should allow you to discard the result
Rename requireAsync to requirea - matching the example set forth by expecta. Adds requires, which is requirea, but for specifying SyncRequirement.
Configuration menu - View commit details
-
Copy full SHA for d04e1c2 - Browse repository at this point
Copy the full SHA d04e1c2View commit details -
Document require in the README
Update the table of contents with doctoc.
Configuration menu - View commit details
-
Copy full SHA for c629411 - Browse repository at this point
Copy the full SHA c629411View commit details -
Remove AssertionHandler.require., require matcher failures will be re…
…corded as test assertion failures, which is what they are anyway.
Configuration menu - View commit details
-
Copy full SHA for cf008d2 - Browse repository at this point
Copy the full SHA cf008d2View commit details -
Also actually mark the non-polling require dsl as discardableResult
Configuration menu - View commit details
-
Copy full SHA for 40c06e9 - Browse repository at this point
Copy the full SHA 40c06e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2bb507 - Browse repository at this point
Copy the full SHA d2bb507View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7f6804 - Browse repository at this point
Copy the full SHA e7f6804View commit details
Commits on Dec 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3c0df24 - Browse repository at this point
Copy the full SHA 3c0df24View commit details -
Configuration menu - View commit details
-
Copy full SHA for daacce0 - Browse repository at this point
Copy the full SHA daacce0View commit details