-
Notifications
You must be signed in to change notification settings - Fork 11
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
Upgraded specs2 to 5.0.0-RC-07 for Scala3 #207
Conversation
and reformatted the fragments a bit to look better when using Scala 3
This turned out to be easier than expected? |
Well, unless I missed something :-) |
This looks good to me, but I will wait for another review from @djspiewak and @armanbilge. |
The final thing to consider is whether to release stable versions that depend on release candidates. |
I propose to wait a bit until I publish the final |
"org.specs2" %%% "specs2-scalacheck" % specs2DottyV | ||
else | ||
"org.specs2" %%% "specs2-scalacheck" % specs2V |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes me really nervous because it makes it very hard for users to easily cross-build between Scala 2 and Scala 3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rossabaker suggested in #192 (comment) that the next version of discipline-specs2 is Scala 3 only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's probably reasonable. It'll be more of a problem for cats-effect-testing though
@vasilmkd would you mind publishing a snapshot so I can test this downstream? :) |
Snapshot release will be available soon. "io.vasilev" %%% "discipline-specs2" % "1.2-7-e3ce260" |
Awesome, thanks! Trying now. |
Cool, works in https://github.com/armanbilge/cheshire/runs/3546471023. Trying another one of my projects next. |
Update, also working in https://github.com/armanbilge/schrodinger/runs/3547259110. That's more interesting maybe because it tests monad transformers against CE3 laws. @etorreborre I just realized the discipline output is sometimes missing newlines, e.g. https://github.com/armanbilge/cheshire/runs/3546471023#step:6:70 |
@armanbilge thanks I thought I had tested that but I must have missed the mutable spec case. I will fix it. |
Actually I'm not sure if there's a meaningful fix in
I tried to write a The simplest thing is actually to use a non-mutable spec:
|
@etorreborre thanks for looking into this so quickly. Apologies if I'm missing something, but can't the |
If you do it then you have an extra
Having some sort of wysiwig display in specs2 is quite hard, either when side-effects are involved with a mutable spec or with a |
IMO we should make that change in this PR. An extra |
I prefer to be able to control exactly how things are displayed but the user is king :-). |
and reformatted the fragments a bit to look better when using Scala 3.
This PR prepares
discipline-specs2
for the upcomingspecs2-5.0.0
release.