GetDKAN / dkan-tools

CLI tools for DKAN site management
https://getdkan.github.io/dkan-tools/
15 stars 14 forks source link

Adding ability to create test accounts using a file to the testing trait #328

Closed tiffneybare closed 2 years ago

tiffneybare commented 2 years ago

This pr revamps the testing trait to create test users based on a testUsers.json file added to the root of the project/src folder. If there isn't a testUsers.json file in the project folder the testUsers.json file in the dktl root folder will be used.

The ProjectCommands.php was also updated to create the test users before cypress runs then delete the test users after cypress tests are completed.

There are also 2 new commands added if you want to create/delete test users without running cypress. They are: dkan:create-test-users alias qauc dkan:delete-test-users alias qaud