For example: {@code "windows", "linux", "regression}
+ * + * @see #groups(Collection) */ public TestNgOperation groups(String... group) { options.put("-groups", String.join(",", group)); return this; } + /** + * The list of groups you want to run. + * + *For example: {@code "windows", "linux", "regression}
+ * + * @see #groups(String...) + */ + public TestNgOperation groups(CollectionFor example: {@code "com.example.Selector1:3", "com.example.Selector2:2"}
+ * + * @see #methodSelectors(Collection) */ public TestNgOperation methodSelectors(String... selector) { options.put("-methodselectors", String.join(",", selector)); return this; } + /** + * Specifies the list of {@code .class} files or class names implementing {@code IMethodSelector}. + * + *For example: {@code "com.example.Selector1:3", "com.example.Selector2:2"}
+ * + * @see #methodSelectors(String...) + */ + public TestNgOperation methodSelectors(CollectionFor example: {@code "com.example.Foo.f1", "com.example.Bar.f2"}
+ * + * @see #methods(Collection) */ public TestNgOperation methods(String... method) { options.put("-methods", String.join(",", method)); return this; } + /** + * Lets you specify individual methods to run. + * + *For example: {@code "com.example.Foo.f1", "com.example.Bar.f2"}
+ * + * @see #methods(String...) + */ + public TestNgOperation methods(CollectionFor example: {@code "com.example", "test.sample.*"}
+ * + * @see #packages(Collection) */ public TestNgOperation packages(String... name) { packages.addAll(Arrays.stream(name).toList()); return this; } + /** + * The list of packages to include in this test. + * If the package name ends with .* then subpackages are included too. + * Required if no {@link #suites(String... suites)} specified. + * + *For example: {@code "com.example", "test.sample.*"}
+ * + * @see #packages(String...) + */ + public TestNgOperation packages(CollectionFor example: {@code "testng.xml", "testng2.xml"}
+ * + * @see #suites(Collection) */ public TestNgOperation suites(String... suite) { suites.addAll(Arrays.stream(suite).toList()); return this; } + /** + * Specifies the suites to run. + * + *For example: {@code "testng.xml", "testng2.xml"}
+ * + * @see #suites(String...) + */ + public TestNgOperation suites(CollectionFor example: {@code "org.foo.Test1","org.foo.test2"}
+ * + * @see #testClass(Collection) */ public TestNgOperation testClass(String... aClass) { options.put("-testclass", String.join(",", aClass)); return this; } + /** + * Specifies the list of class files. + * + *For example: {@code "org.foo.Test1","org.foo.test2"}
+ * + * @see #testClass(String...) + */ + public TestNgOperation testClass(Collection