我在我的rails 4项目中从Cucumber转移到Spinach for BDD。 根据{{3}}上的并行测试文档 它应该支持菠菜
rake parallel:features-spinach # Spinach
但是我收到了这个错误:
4 processes for 40 features, ~ 10 features per process
/home/pbrudny/.rvm/gems/ruby-2.1.1@validations/gems/racc- 1.4.11/lib/racc/parser.rb:532:in `on_error': (Racc::ParseError)
parse error on value "\n" (NEWLINE)
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/gems/racc-1.4.11/lib/racc/parser.rb:264:in `_racc_do_parse_c'
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/gems/racc-1.4.11/lib/racc/parser.rb:264:in `do_parse'
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/gems/gherkin-ruby-0.3.1/lib/gherkin_ruby/parser/lexer.rb:31:in `scan_str'
from gherkin.y:107:in `parse'
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/gems/gherkin-ruby-0.3.1/lib/gherkin_ruby.rb:8:in `parse'
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/gems/spinach-0.8.7/lib/spinach/parser.rb:39:in `parse'
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/gems/spinach-0.8.7/lib/spinach/runner.rb:75:in `block in run'
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/gems/spinach-0.8.7/lib/spinach/runner.rb:74:in `each'
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/gems/spinach-0.8.7/lib/spinach/runner.rb:74:in `run'
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/gems/spinach-0.8.7/lib/spinach/cli.rb:27:in `run'
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/gems/spinach-0.8.7/bin/spinach:15:in `<top (required)>'
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/bin/spinach:23:in `load'
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/bin/spinach:23:in `<main>'
from /home/pbrudny/.rvm/gems/ruby-2.1.1@validations/bin/ruby_executable_hooks:15:in `eval'
只想知道是否有人设法并行运行Spinach。
答案 0 :(得分:1)
最后我能够并行运行菠菜。事实上,只有当菠菜特征在默认目录中时,并行测试才有效
/features
无论 spinach.yml 设置。
我把它们放在
中/spinach_features
不幸的并行测试需要比常规测试更长的时间并且输出显示没有颜色,所以基本上没有使用它们的好处(至少在我的情况下)。