cli
cli copied to clipboard
feat: add seed command to generate test users
What kind of change does this PR introduce?
- Adds a
supabase seed auth
command that generates sql examples to add test users and saves them in aseed.example.sql
file
What is the current behavior?
Please link any relevant issues here.
What is the new behavior?
Feel free to include screenshots if it includes visual changes.
Additional context
Add any other context or screenshots.
Pull Request Test Coverage Report for Build 8597529949
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
- For more information on this, see Tracking coverage changes with pull request builds.
- To avoid this issue with future PRs, see these Recommended CI Configurations.
- For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
Details
- 133 of 164 (81.1%) changed or added relevant lines in 4 files are covered.
- 5 unchanged lines in 1 file lost coverage.
- Overall coverage increased (+0.7%) to 58.569%
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
---|---|---|---|
internal/db/dump/dump.go | 1 | 2 | 50.0% |
cmd/seed.go | 4 | 12 | 33.33% |
internal/seed/seed.go | 127 | 149 | 85.23% |
<!-- | Total: | 133 | 164 |
Files with Coverage Reduction | New Missed Lines | % |
---|---|---|
internal/gen/keys/keys.go | 5 | 11.76% |
<!-- | Total: | 5 |
Totals | |
---|---|
Change from base Build 8574460707: | 0.7% |
Covered Lines: | 6555 |
Relevant Lines: | 11192 |