我运行了以下测试: class FooTest extends SpecWithJUnit with MockServer {
"Foo" should {
"fail" in new ctx {
givenAListenerThatAlwaysFailsWhenExcecuted()
foo.runMethodThatInvokesAListener
}
我有这样的代码 "When some call is made, status is (+value+)" in {
Get("/path") ~> routeToCall ~> check {
// some statements
status === OK <---- this value I want in When Statment
}
我有一个大的json文件与测试列表。 Json文件包含多个文件名,其中包含测试类的名称,其中包含一些设置内容和测试列表。这里有一个这样的JSON文件的例子: {
"filename1.py": {
"ClassName": [
"setupSection": [
here will be list of sqls which should be perf
我有这样 class SomeSpec extends Specification with Specs2RouteTest with SomeService
,我已经写测试用例,其workiing精细的测试文件。 但我没能获得登录日志文件的消息,所以我需要有记录在规范,现在我们可以通过使用 class SomeSpec extends Specification with Specs2Rou