SupabaseS
Supabase6mo ago
Seph

What's your approach in testing with supabase?

I am currently exploring approach in testing NextJS with Supabase. I am current exploring playwright to do end-to-end testing.


Is it a good idea to just start the database before each test and stop it after each test. This is slow. Another limitation to this is that I have to run them sequentially instead of parallel because of the static file configuration.


Another concern that I have is in the seeding. I would like to have a different seed for each test. I looked at the cli documentation but there isn't a command for specifying the seed file.

I would love to know your approaches in doing end-to-end testing.

Thanks in advance!
Was this page helpful?