已合并
【社区学习赛】docs: 更新文件 README.md #2015
yueshengmenghua创建于 8月13日
【社区学习赛】docs: 更新文件 README.md #2015
已合并
共 2 个文件变更+27-27
| @@ -1,27 +1,27 @@ | |||
| 1 | -# Testing and Delivering Methodology | 1 | +# Testing and Delivering Methodology |
| 2 | - | 2 | + |
| 3 | -## Prerequisites for Creating Charts | 3 | +## Prerequisites for Creating Charts |
| 4 | -Prerequisites for creating charts are `plotly.express` and `pandas` packages. They can be installed by commands: | 4 | +Prerequisites for creating charts are `plotly.express` and `pandas` packages. They can be installed by commands: |
| 5 | -```shell | 5 | +```shell |
| 6 | -pip3 install pandas plotly.express | 6 | +pip3 install pandas plotly |
| 7 | -``` | 7 | +``` |
| 8 | - | 8 | + |
| 9 | -## Prerequisites for Memory Test | 9 | +## Prerequisites for Memory Test |
| 10 | -```shell | 10 | +```shell |
| 11 | -pip3 install -U memory_profiler | 11 | +pip3 install -U memory_profiler |
| 12 | -``` | 12 | +``` |
| 13 | - | 13 | + |
| 14 | -## Chart with Tests Sorted by Execution Time | 14 | +## Chart with Tests Sorted by Execution Time |
| 15 | -You can create chart with tests sorted by execution time with script `plot_run_time.py` | 15 | +You can create chart with tests sorted by execution time with script `plot_run_time.py` |
| 16 | - | 16 | + |
| 17 | -First of all you should get your `results.log.json` file. | 17 | +First of all you should get your `results.log.json` file. |
| 18 | -To collect data you can run test cases from TEST SUITE with harness: | 18 | +To collect data you can run test cases from TEST SUITE with harness: |
| 19 | -```shell | 19 | +```shell |
| 20 | -python3 ../harness/harness.py --tests src/tests | 20 | +python3 ../harness/harness.py --tests src/tests |
| 21 | -``` | 21 | +``` |
| 22 | - *Note:* the `results.log.json` file will be in work directory | 22 | + *Note:* the `results.log.json` file will be in work directory |
| 23 | - | 23 | + |
| 24 | -And at the end you can create chart with tests sorted by execution time: | 24 | +And at the end you can create chart with tests sorted by execution time: |
| 25 | -```shell | 25 | +```shell |
| 26 | -python3 ./tdm/plot_run_time.py -i path2_results.log.json -o exec_time.html | 26 | +python3 ./tdm/plot_run_time.py -i path2_results.log.json -o exec_time.html |
| 27 | ``` | 27 | ``` |
| @@ -3,7 +3,7 @@ | |||
| 3 | ## 创建图表的前置条件 | 3 | ## 创建图表的前置条件 |
| 4 | 创建图表的前置条件是 `plotly.express` 和 `pandas` 包。可以通过以下命令安装: | 4 | 创建图表的前置条件是 `plotly.express` 和 `pandas` 包。可以通过以下命令安装: |
| 5 | ```shell | 5 | ```shell |
| 6 | -pip3 install pandas plotly.express | 6 | +pip3 install pandas plotly |
| 7 | ``` | 7 | ``` |
| 8 | 8 | ||
| 9 | ## 内存测试的前置条件 | 9 | ## 内存测试的前置条件 |