我正在尝试使用空手道1.0.1版来测试命令行选项。到目前为止,大多数情况下,一切都在运行,而且非常强大和简单:) 但是,我遇到了一个问题。我遇到的问题是,我需要测试一些命令行脚本,这些脚本的输出可能会因操作系统而异。下面是我尝试使用的一个场景的示例 Feature: Test commands from the tool file
Scenario: Verify contents of tool helpout con
(name:String, population: Long, continent:String)现在我想使用这段通用代码进行搜索操作seachFor:String) : Seq[T] = { case p: Person if(p.name.contains(searchFor)) => Some(p)
case c: C