Skip to content

FanaticalTest/ft-cucumber-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft-cucumber-skeleton

Getting started

  • Update the build.gradle by changing the glue com.fanaticaltest.ftcucumberskeleton.cucumber => with your package name where the cucumber are implemented.
task cucumber() {
	dependsOn assemble, compileTestJava
	doLast {
		javaexec {
			main = "cucumber.api.cli.Main"
			classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
			args = ['--plugin', 'pretty',
					'--plugin', 'html:build/cucumber-html-report',
					'--plugin', 'json:build/cucumber.json',
					//'--tags', '@Id=001',
					'--glue', 'com.fanaticaltest.ftcucumberskeleton.cucumber', 'src/test/resources']
		}
	}
}

Running

gradle cucumber

To run specific tag just uncomment the tags line in the cucumber task in build.gradle : '--tags', '@Id=001'.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published