Automated tests
We will have a list with all the tests that need to be run on a specific project and when the deploy
command is run we will need to check this list for the folder_name
and run all scripts listed in it. After this is done we can continue with the deployment. The format of this file should look similar to this
[ebay]
{path/to/test/test1} {params}
{path/to/test/test2} {params}
{path/to/test/test3} {params}
{path/to/test/test4} {params}
…..
{path/to/test/testN} {params}
======
The first line is the folder_name
. The folder that the project is located. Not the full path.
After it are the test scripts that need to run. They will be run one by one, not simultaneously.
And the the end with six =
to indicate that this is the end of the tests for this project. Every test should return 0 for success and anything else for failure so that this can be indicated when the job is run. All responses generated from the tests should be displayed and above them it should say which test is running.
The tests should be run every time on any machine that they are setup on and on failure it should be indicated and the developer should check for errors.