|
Change how the workflow runs, functionality, and more. For a complete list please see the documentation. Adding a Unit Test Job To define a set of instructions related to a specific task in a workflow called a step you will use the keyword. Each job runs its set of steps in an isolation environment that you configure. Add a section to the file and specify a job named Copy as mentioned before. Each individual job runs in its own environment. In order to run a job you need to specify on which type of computer the job should be run. Specify the machine on which the job should be run using the keyword Copy in the browser to go to the repository. the page you should see a Compare and Pull Requests button because there was a recent push to the PR tab. Click that button to open a pull request.
You should navigate to a new page. On that new page click the Create Pull Request button to open the Pull Request creation page Once you have opened the pull request you should see a yellow box abo photo editing servies ve the Merge Pull Request button showing your test job is running page which is included in Unit tests run within the job. If you click the Details button you should see each step running with its console output. After the job is completed you will receive a notification of whether the check in the workflow passed or failed on the successful or failed test page. Now that your unit test job is complete you will proceed to create the job that runs the integration test. Note: Do not merge this pull request yet.

You will reuse this pull request in the rest of this article. Adding an Integration Test Job The process for running integration tests is very similar to the process for running unit tests. What makes this work different is that your integration tests rely on the test database and environment variables. In this section you will set these up and define a job to run the tests. Before you start making changes you need to check the repository's branches again Copy first copy the job into a new job named. In addition, in the last step of the assignment Replace in Copy so you already have most of what you need to run .
|
|