Imr*_*ran 2 unit-testing nim-lang
我在看unittest文档,发现可以将多个suite块放在一个测试文件中。
但是,我想拥有多个测试文件,并使用单个命令运行它们。我可以编写一个bash脚本来依次编译和运行每个脚本:
#!/bin/bash
nim c -r test1.nim
nim c -r test2.nim
...
Run Code Online (Sandbox Code Playgroud)
但是有更好的方法吗?例如,在Python中,我可以自动发现并运行该表单的所有文件test*.py。
| 归档时间: |
|
| 查看次数: |
355 次 |
| 最近记录: |