Skip to content

feat: Serverpod test tools. - #2882

Merged
hampuslavin merged 21 commits into
serverpod:mainfrom
hampuslavin:hl_update_templates_for_test_tools
Oct 30, 2024
Merged

hampuslavin merged 21 commits into
serverpod:mainfrom
hampuslavin:hl_update_templates_for_test_tools

Conversation

@hampuslavin

@hampuslavin hampuslavin commented Oct 18, 2024 •

Copy link
Copy Markdown
Contributor

Description

As a final step before launching the test tools, they should be included when creating a new:

  • project
  • mini project
  • module

Closes #2734

Changes

  • Adds all template files needed for test tools
  • Extends the example endpoint with a util. This then is used to create a dummy unit test
  • Each new project gets a test/integration and a test/unit folder with example tests
  • Updates the create command so that modules also get the appropriate database configuration out of the box
  • Adds a test that runs dart test for all new project types to verify everything was set up correctly
  • Adds missing tests to modules

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_update_templates_for_test_tools branch 2 times, most recently from 1c09b35 to 7903ce3 Compare October 18, 2024 13:33
@hampuslavin hampuslavin changed the title feat: Include test tools for new projects. [DONT MERGE] feat: Include test tools for new projects. Oct 18, 2024
@hampuslavin
hampuslavin force-pushed the hl_update_templates_for_test_tools branch 2 times, most recently from b509d47 to 83b58c5 Compare October 18, 2024 14:15
@hampuslavin
hampuslavin force-pushed the hl_update_templates_for_test_tools branch from 83b58c5 to 1a4e779 Compare October 18, 2024 14:16
@hampuslavin
hampuslavin requested a review from SandPod October 18, 2024 14:18
@hampuslavin
hampuslavin marked this pull request as ready for review October 18, 2024 14:18

@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 to get this into final form! 🎉

I had a couple of comments and suggestions.

Comment about the review: I feel like the commit separation could have been a bit more clear. There were a couple of big commits that contained content I'm not entirely sure was related. Just a thought to help future reviewers.

@hampuslavin
hampuslavin requested a review from SandPod October 23, 2024 14:17

@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.

Just NIT comments now.

Would you like me to approve this PR or add a block so that it is not possible to merge until we are ready?

Comment thread util/generate_all Resolved

@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 with the last comment around the utils script. 🚀

Comment thread util/generate_all Resolved
@hampuslavin hampuslavin changed the title [DONT MERGE] feat: Include test tools for new projects. feat: Include test tools for new projects. Oct 30, 2024
@hampuslavin hampuslavin changed the title feat: Include test tools for new projects. feat: Serverpod test tools. Oct 30, 2024
@hampuslavin
hampuslavin merged commit 6928edf into serverpod:main Oct 30, 2024
@hampuslavin
hampuslavin deleted the hl_update_templates_for_test_tools branch October 30, 2024 11:08
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 30, 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.

Update template files for Serverpod test tools

2 participants