refactor: run tests with pytest

This commit is contained in:
debugtalk
2022-04-22 19:28:16 +08:00
parent 2681d4c815
commit 8f659effa7
12 changed files with 57 additions and 17 deletions

View File

@@ -30,9 +30,10 @@ Copyright 2021 debugtalk
### SEE ALSO
* [hrp boom](hrp_boom.md) - run load test with boomer
* [hrp convert](hrp_convert.md) - convert JSON/YAML testcases to pytest/gotest scripts
* [hrp har2case](hrp_har2case.md) - convert HAR to json/yaml testcase files
* [hrp pytest](hrp_pytest.md) - run API test with pytest
* [hrp run](hrp_run.md) - run API test with go engine
* [hrp startproject](hrp_startproject.md) - create a scaffold project
###### Auto generated by spf13/cobra on 17-Apr-2022
###### Auto generated by spf13/cobra on 22-Apr-2022

View File

@@ -41,4 +41,4 @@ hrp boom [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 17-Apr-2022
###### Auto generated by spf13/cobra on 22-Apr-2022

21
docs/cmd/hrp_convert.md Normal file
View File

@@ -0,0 +1,21 @@
## hrp convert
convert JSON/YAML testcases to pytest/gotest scripts
```
hrp convert $path... [flags]
```
### Options
```
--gotest convert to gotest scripts
-h, --help help for convert
--pytest convert to pytest scripts (default true)
```
### SEE ALSO
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 22-Apr-2022

View File

@@ -24,4 +24,4 @@ hrp har2case $har_path... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 17-Apr-2022
###### Auto generated by spf13/cobra on 22-Apr-2022

View File

@@ -16,4 +16,4 @@ hrp pytest $path ... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 17-Apr-2022
###### Auto generated by spf13/cobra on 22-Apr-2022

View File

@@ -34,4 +34,4 @@ hrp run $path... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 17-Apr-2022
###### Auto generated by spf13/cobra on 22-Apr-2022

View File

@@ -19,4 +19,4 @@ hrp startproject $project_name [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 17-Apr-2022
###### Auto generated by spf13/cobra on 22-Apr-2022