Skip to content

fix: Support test tools for mini projects - #2831

Merged
hampuslavin merged 7 commits into
serverpod:mainfrom
hampuslavin:hl_2740_support_test_tools_mini
Oct 9, 2024
Merged

hampuslavin merged 7 commits into
serverpod:mainfrom
hampuslavin:hl_2740_support_test_tools_mini

Conversation

@hampuslavin

@hampuslavin hampuslavin commented Oct 8, 2024 •

Copy link
Copy Markdown
Contributor

Description.

Small changes to make the test tools work for Serverpod mini projects.

Closes #2740.

Changes

  • Adds isDatabaseEnabled argument to buildWithServerpod

Testing ❗

  • Tested and verified that it works with a Serverpod Mini project
  • I didn't add an integration test here, only updated the unit test.
  • The plan is to add bootstrap tests that actually runs the example tests to ensure they pass when fixing issue Update template files for Serverpod test tools #2734. I think such a test is a pragmatic way to validate this behavior for the moment.
    • (The alternative would be to create a serverpod_test_mini project in which we can generate the test tools and write a an integration test in an authentic Serverpod mini environment, but that felt overkill right now.)

Pre-launch Checklist

  • I read the Contribute page and followed the process outlined there for submitting PRs.
  • This update contains only one single feature or bug fix and nothing else. (If you are submitting multiple fixes, please make multiple PRs.)
  • I read and followed the Dart Style Guide and formatted the code with dart format.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
  • I added new tests to check the change I am making.
  • All existing and new tests are passing.
  • Any breaking changes are documented below.

@hampuslavin
hampuslavin force-pushed the hl_2740_support_test_tools_mini branch 3 times, most recently from cfc3212 to 46cd5ce Compare October 8, 2024 12:36
@hampuslavin
hampuslavin force-pushed the hl_2740_support_test_tools_mini branch from 46cd5ce to 72e6e24 Compare October 8, 2024 12:37
@hampuslavin
hampuslavin marked this pull request as ready for review October 8, 2024 12:39
@hampuslavin
hampuslavin requested review from Isakdl and SandPod October 8, 2024 12:39

@SandPod SandPod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice clean fix to enable mini!

Just a couple of questions, mostly NITs :)

@SandPod SandPod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@hampuslavin
hampuslavin merged commit e5dc691 into serverpod:main Oct 9, 2024
@hampuslavin
hampuslavin deleted the hl_2740_support_test_tools_mini branch October 9, 2024 10:08
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Serverpod Mini in Serverpod test tools

2 participants