<packages>
<package name=".*test" />
</packages>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite name="2980_suite" verbose="2">
<test name="2980_test" verbose="2">
<method-selectors>
<method-selector>
<script language="beanshell">
<![CDATA[
pkgname = testngMethod.getConstructorOrMethod().getDeclaringClass().getPackageName();
return pkgname.matches(".*test");
]]>
</script>
</method-selector>
</method-selectors>
<packages>
<package name="com.rationaleemotions.pkg.*"/>
</packages>
</test>
</suite>
➜ pkg pwd
~/testng_playground/src/test/java/com/rationaleemotions/pkg
➜ pkg tree .
.
├── Parser.java
├── packagename
│ └── test
│ └── SampleTestCase.java
└── packagenametest
└── SampleTestCase.java
4 directories, 3 files
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/9b7fdf9d-3060-410d-9e10-d64fdf14f9a0n%40googlegroups.com.