Skip to content

Commit 5fadf66

Browse files
authored
docs: Improve doc formatting and fix linting issues with markdownlint (#483) (#707)
作者: xianshujun <[email protected]>
1 parent 1cdfef8 commit 5fadf66

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

docs/README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Welcome to use `atest` to improve your code quality.
44

55
## Get started
6+
67
You can use `atest` as a CLI or as:
78

89
* Web UI
@@ -15,6 +16,7 @@ See also the screenshots below:
1516
![image](https://github.com/LinuxSuRen/api-testing/assets/1450685/e959f560-1fb5-4592-9f45-ec883c385785)
1617

1718
## Installation
19+
1820
There are various ways of installing `atest`:
1921

2022
* CLI via `hd i atest`
@@ -34,7 +36,7 @@ Currently, it supports the following kinds of services:
3436

3537
[![Deployed on Zeabur](https://zeabur.com/deployed-on-zeabur-dark.svg)](https://zeabur.com?referralCode=LinuxSuRen&utm_source=LinuxSuRen&utm_campaign=oss)
3638

37-
### Have a look at the following example usage:
39+
### Have a look at the following example usage
3840

3941
#### Podman
4042

@@ -43,13 +45,14 @@ sudo atest service install -m podman --version master
4345
```
4446

4547
#### Docker
48+
4649
```shell
4750
docker run -v /var/www/sample:/var/www/sample \
4851
--network host \
4952
linuxsuren/api-testing:master
5053
```
5154

52-
The default web server port is `8080`. So you can visit it via: http://localhost:8080
55+
The default web server port is `8080`. So you can visit it via: <http://localhost:8080>
5356

5457
## Run in k3s
5558

@@ -62,6 +65,7 @@ kustomize build sample/kubernetes/docker.io/ | k3s kubectl apply -f -
6265
```
6366

6467
## Run your test cases
68+
6569
The test suite file could be local, or in the HTTP server. Have a look at some examples:
6670

6771
* `atest run -p your-local-file.yaml`
@@ -107,6 +111,7 @@ items:
107111
You can use all the functions that are available in the expr library.
108112
109113
## Convert to JMeter
114+
110115
[JMeter](https://jmeter.apache.org/) is a load test tool. You can run the following commands from the root directory of this repository:
111116
112117
```shell
@@ -118,6 +123,7 @@ jmeter -n -t bin/gitee.jmx
118123
Please feel free to bring more test tool converters.
119124

120125
## Run in Jenkins
126+
121127
You can run the API testings in Jenkins, as demonstrated in the example below:
122128

123129
```Jenkinsfile
@@ -140,9 +146,11 @@ pipeline {
140146
```
141147

142148
## Report
149+
143150
You can see the test results in [Grafana](prometheus.md).
144151

145152
## Monitoring
153+
146154
It can monitor the server and browser via the [Apache SkyWalking](https://skywalking.apache.org/).
147155
Please add the following flag if you want to get the browser tracing data:
148156

@@ -156,6 +164,7 @@ atest server --skywalking http://localhost:12800
156164
```
157165

158166
## Storage
167+
159168
There are multiple storage backends supported. See the status from the list:
160169

161170
| Name | Status |
@@ -168,6 +177,7 @@ There are multiple storage backends supported. See the status from the list:
168177
| MongoDB | Devloping |
169178

170179
### Local Storage
180+
171181
Local storage is the built-in solution. You can run it with the following command:
172182

173183
```shell
@@ -185,11 +195,13 @@ atest server --local-storage 'sample/*.yaml' --console-path console/atest-ui/dis
185195
```
186196

187197
Use the host network mode if you want to connect to your local environment:
198+
188199
```shell
189200
podman run --pull always --network host ghcr.io/linuxsuren/api-testing:master
190201
```
191202

192203
### ORM Database Storage
204+
193205
Start a database with the following command if you don't have a database already. You can install [tiup](https://tiup.io/) via `hd i tiup`.
194206

195207
```shell
@@ -222,6 +234,7 @@ podman run -p 7071:7071 \
222234
```
223235

224236
### S3 Storage
237+
225238
You can use a S3 compatible storage as the storage backend.
226239

227240
```shell
@@ -249,6 +262,7 @@ Have a look at the expected configuration below:
249262
```
250263
251264
### Git Storage
265+
252266
You can use a git repository as the storage backend.
253267
254268
```shell
@@ -275,6 +289,7 @@ Have a look at the expected configuration below:
275289
```
276290
277291
### MongoDB Storage
292+
278293
You can use a MongoDB as the storage backend.
279294
280295
Have a look at the expected configuration below:
@@ -292,6 +307,7 @@ Have a look at the expected configuration below:
292307
```
293308
294309
## Secret Server
310+
295311
You can put sensitive information into a secret server. For example, [Vault](https://www.github.com/hashicorp/vault).
296312
297313
Connect to [a vault extension](https://github.com/LinuxSuRen/api-testing-secret-extension) via flag: `--secret-server`. Such as:
@@ -301,6 +317,7 @@ atest server --secret-server localhost:7073
301317
```
302318

303319
## Application monitor
320+
304321
You can get the resource usage in the report through Docker:
305322

306323
```shell
@@ -311,19 +328,22 @@ atest run -p sample/testsuite-gitlab.yaml --monitor-docker test --report md
311328

312329
| Item | Description |
313330
|---|---|
314-
| `expect.bodyFieldsExpect` | See also the syntax from https://github.com/tidwall/gjson |
331+
| `expect.bodyFieldsExpect` | See also the syntax from [gjson](https://github.com/tidwall/gjson) |
315332

316333
## OAuth
334+
317335
It support GitHub, [Dex](https://github.com/dexidp/dex) as OAuth provider. See also the following usage:
318336

319337
```shell
320338
atest server --auth oauth --client-id your-id --client-secret your-secret
321339
```
322340

323341
## Extensions
342+
324343
Developers can have storage, secret extensions. Implementing a gRPC server according to [loader.proto](../pkg/testing/remote/loader.proto) is required.
325344

326345
## Official Images
346+
327347
You can find the official images from both [Docker Hub](https://hub.docker.com/r/linuxsuren/api-testing) and others. See the image path:
328348

329349
* `ghcr.io/linuxsuren/api-testing:master`
@@ -335,11 +355,13 @@ You can find the official images from both [Docker Hub](https://hub.docker.com/r
335355
The tag `latest` represents the latest release version. The tag `master` represents the image of the latest master branch. We highly recommend you to use a fixed version instead of those in a production environment.
336356

337357
## Release Notes
358+
338359
* [v0.0.15](release-note-v0.0.15.md)
339360
* [v0.0.14](release-note-v0.0.14.md)
340361
* [v0.0.13](release-note-v0.0.13.md)
341362
* [v0.0.12](release-note-v0.0.12.md)
342363

343364
## Articles
365+
344366
* [Introduction](introduce-zh.md)
345367
* [GLCC 2023 announccement](glcc-2023-announce.md)

0 commit comments

Comments
 (0)