Improve tests #10032
Replies: 2 comments
-
Ideas
|
Beta Was this translation helpful? Give feedback.
-
I think a good (and nearly work-ready) first step would be to separate the data seeding from the integration testing. For creating the test dataset (seeding), I suggest we follow Laravel's database seeding approach. This means a series of PHP scripts that work directly with the storage layer (Eloquent models) to create the necessary data. This is a little better abstracted than e.g. SQL scripts, and will perform far better than Cypress tests. It doesn't require 100% API coverage, though that is a laudable goal. And it's consistent with good Laravel approaches, which we'd do well to align further with. If the current test dataset could be fully generated that way, it would free up the Cypress toolset to do what it's best at, while still allowing us the very useful https://github.com/pkp/datasets repo. It would also be a ton faster and more scalable. |
Beta Was this translation helpful? Give feedback.
-
Problems
Beta Was this translation helpful? Give feedback.
All reactions