You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 14, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: Instructions/Labs/AZ400_M03_L09_Set_Up_and_Run_Functional_Tests.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ In this task, you will add the YAML build definition that will be used to implem
72
72
Let's start by importing the CI pipeline named [eshoponweb-ci.yml](https://github.com/MicrosoftLearning/eShopOnWeb/blob/main/.ado/eshoponweb-ci.yml).
73
73
74
74
1. Go to **Pipelines > Pipelines**.
75
-
1. Click on **New Pipeline** button.
75
+
1. Click on **New Pipeline** button (or **Create Pipeline** if you haven't any pipeline).
76
76
1. Select **Azure Repos Git (YAML)**.
77
77
1. Select the **eShopOnWeb** repository.
78
78
1. Select **Existing Azure Pipelines YAML File**.
@@ -85,7 +85,7 @@ Let's start by importing the CI pipeline named [eshoponweb-ci.yml](https://githu
85
85
-**DotNet Publish**: Publishes the application and its dependencies to a folder for deployment to a hosting system. In this case, it's **Build.ArtifactStagingDirectory**.
86
86
-**Publish Artifact - Website**: Publish the app artifact (created in the previous step) and make it available as a pipeline artifact.
87
87
-**Publish Artifact - Bicep**: Publish the infrastructure artifact (Bicep file) and make it available as a pipeline artifact.
88
-
1. Click the **Save** button (not **Save and run**) to save the pipeline definition.
88
+
1. Click the **Save** button (not **Save and run**) on the top-right part of the page to save the pipeline definition. You can find the **Save** button by clicking on the arrow to the right of the **Save and Run** (or **Run**) button.
89
89
90
90
#### Task 2: Add tests to the CI pipeline
91
91
@@ -95,6 +95,7 @@ You can notice that the Unit Tests task is already part of the pipeline.
95
95
96
96
-**Unit Tests** test a single part of your application's logic. One can further describe it by listing some of the things that it isn't. A unit test doesn't test how your code works with dependencies or infrastructure – that's what integration tests are for.
97
97
98
+
1. Edit the pipeline you created in the previous task pressing the **Edit** button.
98
99
1. Now you need to add the Integration Tests task after the Unit Tests task:
99
100
100
101
```YAML
@@ -119,7 +120,7 @@ You can notice that the Unit Tests task is already part of the pipeline.
119
120
120
121
> **Functional Tests** are written from the perspective of the user, and verify the correctness of the system based on its requirements. Unlike integration tests that are written from the perspective of the developer, to verify that some components of the system work correctly together.
121
122
122
-
1. Click **Save**, on the **Save** pane, click **Save** again to commit the changes directly into the main branch.
123
+
1. Click **Validate and Save** button, and if validation is successful, click **Save** again to commit the changes directly into the main branch.
0 commit comments