-
Notifications
You must be signed in to change notification settings - Fork 25
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
Move to MUnit and whale-tail #408
Conversation
milessabin
commented
Jun 5, 2023
- All tests reworked in terms of Munit.
- All test (file)names normalised to "suite" from "spec".
- Replaced test-containers with whale-tail to allow cross building for JS and native.
+ All tests reworked in terms of Munit. + All test (file)names normalised to "suite" from "spec". + Replaced test-containers with whale-tail to allow cross building for JS and native.
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.
Admittedly only skimmed through an unfamiliar codebase but actually this seemed like a pretty straightforward migration, besides the whale tail stuff.
// Slow because each usage will open a new socket, but ok for now. | ||
lazy val pool: Resource[IO, Session[IO]] = | ||
lazy val pool: Resource[IO, Session[IO]] = { |
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.
We can replace this with a "resource fixture" that is shared for the entire suite in a follow-up PR.
password = Some(container.password), | ||
database = container.databaseName, | ||
// debug = true, | ||
host = if (host == "0.0.0.0") "127.0.0.1" else host, |
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.
Note-to-self to look at this.
After this merges I'll work on the JS and Native cross-builds. Thanks, these changes are a big help towards that! |