Skip to content

Commit 7b04972

Browse files
authored
Add inline code quote
1 parent 72cf44b commit 7b04972

File tree

1 file changed

+6
-6
lines changed
  • samples/containers/unit-testing/tsqlt-docker

1 file changed

+6
-6
lines changed

samples/containers/unit-testing/tsqlt-docker/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ To run this example, the following basic concepts are required.
4545

4646
## Case history
4747

48-
The AdventureWorks database contains the Production.Product table that stores products managed and sold by the fake company Adventure Works LTD.
48+
The AdventureWorks database contains the `Production.Product` table that stores products managed and sold by the fake company Adventure Works LTD.
4949

50-
The trigger we have wrote is to prevent the insertion of new products with values less than 10 as a “safety stock”. The Company wishes to always have a warehouse stock of no less than 10 units for each product. The safety stock level is a very important value for the automatic procedures: it allows to re-order materials. The creation of new purchase orders and production orders are based on the safety stock level. To make our trigger simple, it will only respond to the OnInsert event, for INSERT commands.
50+
The trigger we have wrote is to prevent the insertion of new products with values less than 10 as a “safety stock”. The Company wishes to always have a warehouse stock of no less than 10 units for each product. The safety stock level is a very important value for the automatic procedures: it allows to re-order materials. The creation of new purchase orders and production orders are based on the safety stock level. To make our trigger simple, it will only respond to the `OnInsert` event, for `INSERT` commands.
5151

5252
<a name=run-this-sample></a>
5353

@@ -85,7 +85,7 @@ A sample YAML file that implements the test automation workflow is already in yo
8585

8686
**1. Definition of activation events**
8787

88-
The definition of the activation events is typically done at the beginning of the YAML script with a code snippet similar to the one shown below. The workflow is activated when push or pull request events occur on the master branch. The workflow_dispatch specification allows you to run the workflow manually from the actions tab.
88+
The definition of the activation events is typically done at the beginning of the YAML script with a code snippet similar to the one shown below. The workflow is activated when push or pull request events occur on the `master` branch. The `workflow_dispatch` specification allows you to run the workflow manually from the actions tab.
8989

9090
```
9191
# Controls when the workflow will run
@@ -102,7 +102,7 @@ on:
102102

103103
**2. Creating a Docker container from a SQL Server image on Linux**
104104

105-
Creating a Docker container from a SQL Server image on Linux can be done by requesting the sqlserver service accompanied by the path to the Docker image you want to use.
105+
Creating a Docker container from a SQL Server image on Linux can be done by requesting the `sqlserver service` accompanied by the path to the Docker image you want to use.
106106

107107
The official images provided by Microsoft for SQL Server on Linux are available [here](https://hub.docker.com/_/microsoft-mssql-server).
108108

@@ -129,7 +129,7 @@ jobs:
129129

130130
In order to reference the newly created Docker container it is important to save its identifier in an environment variable.
131131

132-
The following snippet of YAML code sets the ENV_CONTAINER_ID variable with the ID of the container created.
132+
The following snippet of YAML code sets the `ENV_CONTAINER_ID` variable with the ID of the container created.
133133

134134
```
135135
- name: Set environment variable ENV_CONTAINER_ID
@@ -196,7 +196,7 @@ The following docker exec command, that uses sqlcmd, executes the TSQL commands
196196
run: docker exec -i $ENV_CONTAINER_ID /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "3uuiCaKxfbForrK" -d AdventureWorks2017 -b < ./unit-test/test-class-trproductsafetystocklevel.sql
197197
```
198198

199-
Let's go ahead with the creation and execution of the unit tests. Each .sql file of the "test case" family contains the TSQL commands for creating and running the related unit test. Each store procedure tests one and only one test case.
199+
Let's go ahead with the creation and execution of the unit tests. Each .sql file of the test case family contains the TSQL commands for creating and running the related unit test. Each store procedure tests one and only one test case.
200200

201201
The following snippet of YAML code creates and runs the test units.
202202

0 commit comments

Comments
 (0)