@CitrusTestSource annotated methods reference test scripts and test descriptor files in other DSLs. To make the lookup and navigation to those files simpler and quicker, some kind of navigation option should be implemented.
Tasks
The first option is a line marker, but considering that there can be multiple files and locations specified and in multiple ways, there may need to be a distinction, and separate options to navigate to them separately.
The sources attribute will support only classpath resource paths, for now.
Combination of options
File extensions
XML, SPRING: .xml
YAML: .yaml
GROOVY: .groovy
name
packageName
packageScan
sources
Executed
Java test method name in package of the declaring class.
+
name attribute value + file extension of type in package of the declaring class.
+
Java test method name in the packageName package.
+
The Java test method name is ignored. Test names are the ones found in the packageScan package.
+
The files specified in sources in the packages of files specified in sources
+
+
name attribute value + file extension of type in packageName package.
+
+
name attribute value + file extension of type from the current package, AND all tests in the packageScan package.
+
+
Only the files specified in sources, but a GroovyTestLoader is also created for name which is not executed.
+
+
Only the files found in packageScan.
+
+
+
name attribute value + file extension of type from the packageName package, AND all tests in the packageScan package.
+
+
Only the files specified in sources.
+
+
+
Only the files specified in sources, but a GroovyTestLoader is also created for name which is not executed.
+
+
Files found in packageScan, AND in source.
+
+
+
Only the name attribute value + file extension of type from the current package but GroovyTestLoaders are also created for packageScan and sources that are not executed.
+
+
+
Only the files specified in packageScan and sources.
+
+
+
+
name attribute value + file extension of type from the packageName package, AND sources, but GroovyTestLoaders are also created for packageScan which are not executed.
Summary
@CitrusTestSource
annotated methods reference test scripts and test descriptor files in other DSLs. To make the lookup and navigation to those files simpler and quicker, some kind of navigation option should be implemented.Tasks
sources
attribute will support only classpath resource paths, for now.Combination of options
name
attribute value + file extension oftype
in package of the declaring class.packageName
package.packageScan
package.sources
in the packages of files specified insources
name
attribute value + file extension oftype
inpackageName
package.name
attribute value + file extension oftype
from the current package, AND all tests in thepackageScan
package.sources
, but a GroovyTestLoader is also created forname
which is not executed.packageScan
.name
attribute value + file extension oftype
from thepackageName
package, AND all tests in thepackageScan
package.sources
.sources
, but a GroovyTestLoader is also created forname
which is not executed.packageScan
, AND insource
.name
attribute value + file extension oftype
from the current package but GroovyTestLoaders are also created forpackageScan
andsources
that are not executed.packageScan
andsources
.name
attribute value + file extension oftype
from thepackageName
package, ANDsources
, but GroovyTestLoaders are also created forpackageScan
which are not executed.