在 TestCafe 的 tests/ 文件夹下只执行过 1 个文件
only 1 file is ever executed under my tests/ folder for TestCafe
我在 /testcafe/tests/
文件夹下有多个 test_*.js
文件。当从命令行或通过 Visual Studio 执行 TestCafe 时,只会执行一个文件....为什么会这样?
- 测试(文件夹)
- test_somefilename.js
- test_someOtherfilename.js
- test_onlyfileexecuted.js
- test_anotherfilename.js
当运行以下命令时,只有 1 个文件 曾经 执行过:
testcafe <pathToTestFolder>/tests/*.js
这将仅执行名为test_onlyfileexecuted.js
的文件
为什么?我可以手动输入命令来执行每个文件,TestCafe 可以完美运行,但是在执行 glob 模式时,这是唯一的测试 found/executed...所以很困惑
只需 运行 testcafe {browser} <pathToTestFolder>/tests/
(无 *.js),Testcafe 将自动获取该目录中的所有测试
我在 /testcafe/tests/
文件夹下有多个 test_*.js
文件。当从命令行或通过 Visual Studio 执行 TestCafe 时,只会执行一个文件....为什么会这样?
- 测试(文件夹)
- test_somefilename.js
- test_someOtherfilename.js
- test_onlyfileexecuted.js
- test_anotherfilename.js
当运行以下命令时,只有 1 个文件 曾经 执行过:
testcafe <pathToTestFolder>/tests/*.js
这将仅执行名为test_onlyfileexecuted.js
为什么?我可以手动输入命令来执行每个文件,TestCafe 可以完美运行,但是在执行 glob 模式时,这是唯一的测试 found/executed...所以很困惑
只需 运行 testcafe {browser} <pathToTestFolder>/tests/
(无 *.js),Testcafe 将自动获取该目录中的所有测试