Questions tagged [spock-reports]

Spock-Reports is a plugin for spock which creates human readable reports.

Spock-Reports is a plugin for which creates human readable reports.

See https://github.com/renatoathaydes/spock-reports for more details.

22 questions
7
votes
3 answers

Is documentation readable by non-programmers possible with Spock?

FitNesse has a wiki-style documentation feature. It provided both the code and the doc's for these specification tests. Is there a way in Spock (with plugin? / out of the box?) to generate any type of similar documentation to show off to the project…
Lorin S.
  • 754
  • 8
  • 29
4
votes
2 answers

How to get log messages to display in Spock Reports?

I am using the Spock Reports extension in a Geb test. I am trying to find if there is any way to get the logging messages to display in the Spock report. I have something roughly like this: @Slf4j class SpockReportExample extends GebReportingSpec…
4
votes
1 answer

Integrating serenity/thucidydes with spock

I am working on automation tests with selenium webdriver and spock framework. I would like to know how can I integrate serenity with spock testing? My project is build with gradle and groovy is the language used for writing tests. Any sample class…
RV_Dev
  • 435
  • 1
  • 7
  • 21
3
votes
0 answers

Jenkins Publishing Multi Module Spock Test Reports

I have a multi-module maven project that looks like this: backend |_module-a |_module-b |_module-c Eventually new modules can be added under backend The backend module has a packaging "pom" and all modules-a,b and c are just regular jars We use…
Mark Bramnik
  • 39,963
  • 4
  • 57
  • 97
3
votes
1 answer

Spock & Spock Reports: How print a variable valuable in Label/Block

I am working with: Spock Core Spock Reports Spock Spring Spring MVC Testing and I have the following code: def "findAll() Expected"(){ given: "The URL being used is: /personas/xml/personas" url = PersonaUrlHelper.FINDALL; when:…
Manuel Jordan
  • 15,253
  • 21
  • 95
  • 158
3
votes
1 answer

Spock & Spock Reports: how "catch" and customize the error message for AssertionError?

I am working with: Spock Core Spock Reports Spock Spring Spring MVC Testing and I have the following code: @FailsWith(java.lang.AssertionError.class) def "findAll() Not Expected"(){ given: url = PersonaUrlHelper.FINDALL; when:…
Manuel Jordan
  • 15,253
  • 21
  • 95
  • 158
2
votes
1 answer

How to take screenshots only for failure step in geb using athaydes plugin

I am using athaydes plugin to create HTML reports with step wise screen shots. It's working fine and capturing screenshots for all steps. However my requirement is that, how to capture screen shots only for failed steps. Is there any provision…
Durgesh
  • 585
  • 4
  • 12
  • 33
2
votes
1 answer

Condition not Satisfied at Groovy

have a problem here, and I'm really tired of try to find an solution... Every time I use this: Map comparisonMap = new HashMap<>() comparisonMap.put(object, object2) I receive an error message like this: Condition not…
2
votes
2 answers

Spock Framework: How to create a customized Data Provider

I am working with: Spring MVC Spring MVC Test Spock Framework About Spock working with @Unroll I have the following situation about the where block I can have the following: where: "Internal" uriRequestReport <<…
Manuel Jordan
  • 15,253
  • 21
  • 95
  • 158
1
vote
1 answer

'ClassCastException class [B cannot be cast to class [C' when attempting to generate spock reports

When generating unit test reports using spock-reports, I'm getting a ClassCastException: class [B cannot be cast to class [C ([B and [C are in module java.base of loader 'bootstrap') I'm using Java 11 with Spock 2.0 for unit tests and spock-reports…
roj
  • 1,262
  • 13
  • 27
1
vote
1 answer

java.lang.AbstractMethodError in implementing Spock-Reports Extension (renatoathaydes) for my SPOCK test

I'm very new to SPOCK so excuse me if this a silly question. I've done report setup in my Maven based Spock-Groovy project as mentioned in the below git-hub project- https://github.com/renatoathaydes/spock-reports What I've done is- Added below 3…
Satyendra Sharma
  • 1,436
  • 13
  • 19
1
vote
1 answer

How to customize Spock Report table content?

I would like to personalize the content of a Spock Report. In this case I would like to replace the xml output by something more readable. In my test scenarios, expected xml body must match HttpStatus with the following datatable (I just kept the…
Charles Julien
  • 365
  • 3
  • 16
1
vote
1 answer

Customize XML report files in Spock

I am new to Spock and need to figure out if I can customize the XML test report file generated by Spock. As far as I could figure out so far, I can enable generating JSON report file in which I would have access to all tests' start and end time. I…
Suo6613
  • 431
  • 5
  • 17
1
vote
1 answer

Spock - exclude test class from being in test report

I have some tests I'd like to exclude from the spock-report. Is it possible to exclude specific classes or tests from generating it?
woundy
  • 31
  • 2
1
vote
0 answers

Screenshots are not coming in index.html for geb spock appium

I am using Geb Spock with Appium. I am successfully able to execute the script with it and reports are too getting generated. However screen shots are getting attached in index.html summary report. When I searched for screenshots in target folder,…
Durgesh
  • 585
  • 4
  • 12
  • 33
1
2