Summer Sale! All accounts are 50% off this week.

dealense's avatar

Problem with parallel testing

hello, I have two interesting and important question about new parallel testing.

  1. How can I delete databases after finish of running parallel testing and if I do that, on the next run will it take as long time as it takes on the first run?
  2. can I make different groups of tests.

Thanks a lot!

0 likes
2 replies
fylzero's avatar

@dealense You can either use in memory SQLite, which will be faster and you won't need to worry about standing up or deleting the database... or just create a mysql testing database and use that for tests without worrying about creation/deletion, just set and forget. Paratest/Laravel automatically handles refreshing for each database with the RefreshDatabases standard syntax.

Yes, you can make groups with group annotations in PHPunit and target those via command line. Should still be able to do this in parallel.

1 like
dealense's avatar

@fylzero problem in one database is that it does not work with multiple pipelines. But thanks anyway, I will try sql lite, and if it will work, I can give you feedback.

Please or to participate in this conversation.