File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/com/marklogic/test/unit Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,16 @@ public List<JUnitTestSuite> runAllSuites() {
8989 * @return a JUnitTestSuite capturing the results of running the given suite name
9090 */
9191 public JUnitTestSuite runSuite (String suite ) {
92+ return runSuite (suite , true , true );
93+ }
94+
95+ public JUnitTestSuite runSuite (String suite , boolean runTeardown , boolean runSuiteTeardown ) {
9296 RequestParameters params = new RequestParameters ();
9397 params .add ("func" , "run" );
9498 params .add ("suite" , suite );
9599 params .add ("format" , "junit" );
100+ params .add ("runsuiteteardown" , String .valueOf (runSuiteTeardown ));
101+ params .add ("runteardown" , String .valueOf (runTeardown ));
96102 String xml = getServices ().post (params , (AbstractWriteHandle ) null , new StringHandle ()).get ();
97103 return unitTestXmlParser .parseJUnitTestSuiteResult (xml );
98104 }
You can’t perform that action at this time.
0 commit comments