Automated Lunar Seeder to Facilitate Testing with RefreshDatabase Trait #1163
nick-nds
started this conversation in
Feature Requests
Replies: 1 comment
-
You can try to call
The idea to have different seeders with factories for testing and seeders that process some config/template files for setup sounds great. In my current project I don't use the
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I've been using the
RefreshDatabase
trait for testing my app, and it clears database before tests. But, here's the catch – I had to manually add those database entries that Lunar installs via seeders. 🌱 And guess what? Theinstall:lunar
command needs user input, so installing lunar before tests is a no-go. 😫Here's the idea: What if we had a Lunar seeder specifically for tests, loaded with test data? 🚀 That way, we could easily test our apps without the hassle! Right now, I've set up a simple seeder for my database to work around the issue.
Beta Was this translation helpful? Give feedback.
All reactions