Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未找到与Lua模式匹配的测试文件:spec_Lua_Luarocks_Lua Busted - Fatal编程技术网

未找到与Lua模式匹配的测试文件:spec

未找到与Lua模式匹配的测试文件:spec,lua,luarocks,lua-busted,Lua,Luarocks,Lua Busted,文件“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”时,它会成功并返回: ●●

文件“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
●●●●
4 successes / 0 failures / 0 errors / 0 pending : 0.006815 seconds
当我运行“busted*”时,它会成功并返回:

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

那么,为什么busted在运行“busted”时找不到文件“btest_spec.lua”?

这是因为busted所依赖的依赖项指示灯中断了

看这里-


penlight 1.4.1的固定版本现在在luarocks上,如果您更新busted,它应该可以解决您的问题。

这是由于busted所依赖的依赖性penlight中断造成的

看这里-


penlight 1.4.1的固定版本现在在luarocks上,如果您更新busted,它将修复您的问题。

我遇到了相同的错误macOS Sierra,fish shell,并通过运行busted解决了它。而不是刚刚破产。请注意,指示busted的时间段应在当前工作目录中查找。

我遇到了相同的错误macOS Sierra,fish shell,并通过运行busted解决了此问题。而不是刚刚破产。注意,指示busted的句号应该在当前工作目录中查找。

我安装了penlight 1.5.4-1,所以这一定是另一个问题。我安装了penlight 1.5.4-1,所以这一定是另一个问题。还修复了Ubuntu gnome-terminal上的问题。这是正确的答案!我在OSX和zsh中安装了1.7.0-1,并且遇到了相同的错误。以$busted的形式运行它。还修复了Ubuntu gnome-terminal上的问题。这是正确的答案!我在OSX和zsh中安装了1.7.0-1,并且遇到了相同的错误。以$busted的形式运行它。作品