3
파일로 인쇄 된 Spock 테스트에서 사양 (코드 필터링)을 얻을 수있는 방법이 있습니까? 예를 들어Spock 사양의 추출 사양
, 다음과 같은 사양에 대한 :
class CarSpec extends IntegrationSpec {
def 'it should not retrieve deleted cars'() {
given: 'a car'
def car = new Car(uniqueName: 'carName')
car.save()
when: 'I delete the car'
car.delete()
then: 'it shouldn't find me the car on the DB'
Car.find { uniqueName == 'carName' } == null
}
}
이 같은 인쇄해야합니다 : 당신은 가능한 타사 플러그인 중 하나 (예 : https://github.com/damage-control/report)를 사용할 수
CarSpec
it should not retrieve deleted cars
given a car
when I delete the car
then it shouldn't find me the car on the DB
손상 제어 플러그인을 사용하는 방법에 대한 지침이 있습니까? README 파일이 충분히 명확하지 않은 것 같습니다. –
최고 저자에게 물어보십시오. –
당신이'spock.lang. @ Issue '의 저자라는 것을 알았습니다 - 피해 통제 보고서에 보고서 링크를 포함시키는 쉬운 방법이 있습니까? – Bohemian