-
Notifications
You must be signed in to change notification settings - Fork 39
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
Reintroduce Expect.true/false
with a better API?
#224
Comments
💯 Spitballing some ideas:
One issue I found making custom predicate based assertions is that to make the error message good you need to have a way of including whatever you computed into the error message, but given that you usually do this in pipelines, this becomes annoying.
to add nicer error message:
Perhaps this API could even be improved to:
Where elm-test calls
|
Running the latest version of elm-test-rs on this project failed with the following error message: ``` Error: Failed to solve dependencies for tests to run Caused by: This version of elm-test-rs only supports elm-explorations/test 2.0.0 <= v < 3.0.0, but you have 1.1.0 <= v < 2.0.0 in your dependencies ``` The commit updates the dependencies to enable running tests with the latest version of elm-test-rs Changes in the API of the test framework required adaption of the test code. For details on changes in the test framework, see: + elm-explorations/test@e3584bd (elm-explorations/test#46, elm-explorations/test#224) + elm-explorations/test@9aa32d9 (elm-explorations/test#48) + elm-explorations/test@387aa2d (elm-explorations/test#157)
Maybe we should make it easier to do this:
by having something like
The previous maintainers' reasons for removing
Expect.true
was that it took away the spotlight from better solutions (Expect.equalLists
, ...), but sometimes you just have to work with predicates. It's not always possible/practical to use the other helpers. Let's trust our users to understand when to use which solution?The text was updated successfully, but these errors were encountered: