我想知道某些 channel 是否可以跳过某些/指定 channel 的before_allafter_all块?

谢谢!

最佳答案

一种方法是:

before_all do |lane|
  if lane == :test
    puts "Do something for test"
  else
    puts "foo"
  end
end

与您的评论有关的其他内容
lanes = [:test, :foo, :bar]
lanes.include?(:test) # => true
lanes.include?(:baz) # => false

所以你可以做类似的事情
before_all do |lane|
  lanes_to_say_foo = [:test, :build, :other]
  if lanes_to_say_foo.include?(lane)
    puts "Foo"
  end
end

关于ios - FaSTLane可以在某些车道上跳过 `before_all`或 `after_all`吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/41594442/

10-09 16:14