spacialcircumstances / gradle-cucumber-reporting Goto Github PK
View Code? Open in Web Editor NEWA gradle plugin to generate pretty HTML reports for Cucumber from json report files.
License: GNU Lesser General Public License v2.1
A gradle plugin to generate pretty HTML reports for Cucumber from json report files.
License: GNU Lesser General Public License v2.1
Hi,
How would I consolidate all reports generated by Cucumber in separate subprojects in a multi-project into one single report?
I have a multi-project with three of the subprojects containing Cucumber features and reports, but they are all in a directory of the subproject. I would like to have a single report available with all reports of the subprojects consolidated.
Thanks.
I saw this plugin was recently submitted to plugins.gradle.org, and I must admit I've made a grave mistake and rejected it when I meant to accept it.
I'm sorry about that. Could I request you please re-submit it whenever you have a chance?
Hi,
I would like to know, in my Gradle Cucumber project, surely includes some test tasks for trigger the Cucumber test cases, and these tasks are surely will be generated the cucumber report by the gradle-cucumber-reporting
plugin automatically as I configured testTasksFinalizedByReport
as true
.
But some tasks such checkstyle it is not the cucumber testing task, for example I run this task by command gradle check
, and finally also will trigger the cucumber report generation but failed with no cucumber.json
file found in the target directory.
So my question is how I can set the cucumber-reporting plugin to skip some testing task to generate the report after the task completed by some straight forward method?
as I don't want to disabled this configuration testTasksFinalizedByReport
and then configure every cucumber testing task that add doLast()
that to generate the cucumber report.
Thanks.
When applying the plugin in the build.gradle file, the build returns the following error:
An exception occurred applying plugin request [id: 'com.github.spacialcircumstances.gradle-cucumber-reporting', version: '0.1.2']
Failed to apply plugin [id 'com.github.spacialcircumstances.gradle-cucumber-reporting']
Could not get unknown property 'displayName' for root project 'MyTestProject' of type org.gradle.api.Project.
do you know what might be causing this?
when I run ParallelCucumber by SCENARIO level, the report will not merge the scenarios for the same feature.
I found that the cucumber reporter already support this feature, merge features by ID, so how can I apply this?
thx~
the related issue link: jenkinsci/cucumber-reports-plugin#172
Hey,
The plugin needs the Cucumber.json file to execute. I want to build my project, in some cases, without running the cucumber tests (to save time), therefore no Cucumber.json will be generated. However, I will still have the Plugin and Configuration in my build.gradle file, and so when doing "gradle build" in the terminal the generateCucumberReport plugin will execute and fail my build. Is there a way for the plugin to not execute when it does not detect the Cucumber.json and just skip its execution (optional config?)?
Thank you.
Hi,
i have different example report screenshot attach
currently i got report like this:
Current After Hook Code
import io.cucumber.core.api.Scenario;
@After
public void after(Scenario scenario) {
if (scenario.isFailed()) {
scenario.embed(((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES), "image/png");
scenario.write("Scenario Fail");
}
}
Anyone can explain about this ?
Thanks :)
Is there a property to generate the report even when the test build has failed.
Is there a way to have the plugin generate an index.html
? Or, even better, create a section in the index.html
that Gradle produces that points to the overview-*.html
that the plugin produces?
Hi,
When I follow instructions in readme and add the plugin, my build command fails with
No report files found, aborting...
My cucumberTest task gets executed later and I would like to tie this with cucumberTest task. Any way to bypass the plugin during build task?
Thanks,
Nikhil
Would it be possible to expose an option to specify the report name in the config?
I'm seeing "root project 'myapp'" and I dunno where it has got the 'root project' aspect from?
The only reference to the project name I have is in settings.gradle
rootProject.name = 'myapp'
Use case:
Different cucumber runner files generate report at different locations.
The plugin generates one html report if we provide path to individual .json files
How can I get the output json file which will have combined details? so that the same json file can be used to generate reports using the cucumber-report plugin in jenkins (which takes input as json file)
My project is using JDK 11. When trying to use
plugins {
id "com.github.spacialcircumstances.gradle-cucumber-reporting" version "0.1.16"
}
I get an error :
What went wrong:
java.lang.UnsupportedClassVersionError: com/github/spacialcircumstances/gradle/ReportsPlugin has been compiled by a more recent version of the Java Runtime (class file version 56.0), this version of the Java Runtime only recognizes class file versions up to 55.0
com/github/spacialcircumstances/gradle/ReportsPlugin has been compiled by a more recent version of the Java Runtime (class file version 56.0), this version of the Java Runtime only recognizes class file versions up to 55.0
I know I could upgrade on my side to JDK 12, but I can't for now because of company policy.
I looked at the commits quickly, but couldn't find the version from which you started to use JDK 12 to compile and publish the plugin.
Could you add a section in readme indicating from which verison onward of the plugin JDK 12 needs to be used ? This way I could use the version just before for now.
Thanks !
hi ,
i have to run and generate cucumber reporting in jenkins,
but i can't see trends statistic like this,
https://github.com/damianszczepanik/cucumber-reporting/blob/master/.README/trends.png
anyone know how to configure it ?
gradle task
cucumberReports { runWithJenkins = true outputDir = file("$projectDir/target/generated-reports") reports = files("$projectDir/target/cucumber-parallel/json/example-report.json") }
Hi,
I'm in a situation where I have a unit test suite, and separate Cucumber test suite. Unfortunately, by including your plugin, if I want to just run the unit tests, then it will fail as you do a finalizedBy generate cucumber report task.
As far as I can tell there is no way to clear a finalizedBy after it's been set. Might be wrong there.
Julian
Issue Description: The plugin works fine when I run the generateCucumberReports task on my local but when the same task is run during AWS Codebuild job then it fails with following error.
Root project name is already set in settings.gradle file
rootProject.name='someprojectname'
FAILURE: Build failed with an exception.
Where:
Build file '/codebuild/output/someprojectname/build.gradle' line: 2
What went wrong:
An exception occurred applying plugin request [id: 'com.github.spacialcircumstances.gradle-cucumber-reporting', version: '0.0.11']
Failed to apply plugin [id 'com.github.spacialcircumstances.gradle-cucumber-reporting']
Could not find property 'displayName' on root project 'someprojectname'.
BUILD FAILED
No signature of method: net.masterthought.cucumber.Configuration.setParallelTesting() is applicable for argument types: (java.lang.Boolean) values: [false]
It is looks like they have removed unused parameter "parallelTesting" at 8th of October.
Background - It's possible to have scenarios which should be run against one configuration, and another - for opposite one. In such case runner should skip those scenarios which shouldn't be run against current config.
Underlying project https://github.com/damianszczepanik/cucumber-reporting provides such capability by passing additional config line:
configuration.setNotFailingStatuses(Collections.singleton(Status.SKIPPED));
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.