好,所以下面是我的文件夹结构的一部分
在我的 PAR-5139.js 测试脚本中,我具有以下内容;
@foreach($cart as $product)
Name:<td>{{ $product->name}}</td>
Price:<td>{{ $product->price}}</td>
Quantity:<td>{{ $product->qty}}</td>
Attributes:<td>{{ $product->attributes}}</td>
@foreach(json_decode($product->attributes) as $details)
Image:<td>{{ $details->image}}</td>
Total:<td>{{ $details->total}}</td>
{{ $details}}
@endforeach
@endforeach
我的测试套件中没有其他脚本定义了此标记。
在我的 local.conf.js 中,我有以下内容;
module.exports = {
'@tags':['gamAds'],
我正在从以下位置运行测试;
/ Users / darrenharley / Documents / Git / uk-content-parkers / Tests / Functional / tests / current_functionality
使用以下命令;
src_folders: [
'./tests'
但是,即使 PAR-5139.js 是唯一在测试脚本中带有gamAds标签的文件,它仍会运行current_functionality文件夹中的所有3个文件!
例如,如果我从其他位置运行测试,也会发生这种情况;
/ Users / darrenharley / Documents / Git / uk-content-parkers / Tests / Functional / tests
我是从错误的文件位置运行测试还是错误地运行tag命令?
任何帮助将不胜感激。