--
You received this message because you are subscribed to the Google Groups "Thucydides Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send an email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Really, I'm trying to understand the preferred way to use tags using JBehave and gradle. I have not had any luck getting it to work (I want to be able to only run tests/stories/scenarios that have a specific tag assigned to them); so my .story has something like:
Meta:
@tag Release: 1.0
@testtype integration
gradle clean check aggregate -Dmetafilter="+testtype integration"
Any feedback suggestions appreciated!
Shawn
task copyPropsFile << {
if(!project.hasProperty('environment')){
ext.environment = 'dev'
}
copy{
from '../conf/' + environment + '/properties/serenity.properties'
into projectDir
}
// Appends the JBehave metafilter property to the property file
// See JBehave metafilter documentation: http://jbehave.org/reference/stable/meta-filtering.html for metafilter options
if (project.hasProperty('metafilter')) {
println "JBehave metafilter set to: $metafilter"
ant.propertyfile(file: "$projectDir/serenity.properties") {
entry( key: "metafilter", value: "$metafilter")
}
}
}
// Hook into the gradle processTestResources task to execute the copyPropsFile custom task
processTestResources{
doFirst{
copyPropsFile.execute()
}
}