sgo / grails-functional-spock

Write Grails functional tests with Spock
2 stars 2 forks source link

Fix defect when other plugins add a GrailsSpecTestType. #3

Open sriddell opened 11 years ago

sriddell commented 11 years ago

The plugin previously decided whether it needed to add a spock functional test type by seeing if functionalTests contained any instances of GrailsSpecTestType. This can cause a functional spock type to not be added when other plugins, e.g. selenium, also add a GrailsSpecTestType.

By changing the check to also consider the name and relativeSourcePath, the spock type gets added for functional tests, even when selenium is also present.

sriddell commented 11 years ago

Just wanted to check and see if there is anything I can do to assist with adding this pull request.