1

私のディレクトリ

ファイル 'hhh.lua' の内容はファイル 'btest_spec.lua' と同じです (私のディレクトリを見てください)

'busted' を実行すると (commond 'busted' を使用するだけです)、エラーが返されます。

0 successes / 0 failures / 1 error / 0 pending : 0.00003 seconds
Error → No test files found matching Lua pattern: _spec

「busted btest_spec.lua」を実行すると、成功して次のように返されます。

●●
2 successes / 0 failures / 0 errors / 0 pending : 0.003049 seconds

「busted *」を実行すると、成功して次のように返されます。

●●●●
4 successes / 0 failures / 0 errors / 0 pending : 0.006815 seconds

では、'busted' を実行すると、なぜ busted はファイル 'btest_spec.lua' を見つけられないのでしょうか?

4

2 に答える 2

4

同じエラー(macOS Sierra、魚の殻)があり、busted .代わりに実行して解決しましたbusted. バステッドを示すピリオドは、現在の作業ディレクトリを参照する必要があることに注意してください。

于 2016-12-16T14:22:26.887 に答える
2

This is due to a break in the dependency "penlight", which busted relies on.

See here - https://github.com/Olivine-Labs/busted/issues/528

The fixed version of penlight (1.4.1) is now on luarocks, which should fix your issue if you update busted.

于 2016-08-17T01:31:05.907 に答える