1111import org .slf4j .Logger ;
1212import org .slf4j .LoggerFactory ;
1313
14+ import jp .vmi .junit .result .ITestTarget .Lifecycle ;
1415import jp .vmi .selenium .selenese .utils .CommandLineUtils ;
1516
1617import static jp .vmi .junit .result .ObjectFactory .*;
@@ -102,7 +103,7 @@ public void startTestSuite(ITestSuite testSuite) {
102103 /**
103104 * End test-suite.
104105 *
105- * @param testSuite test-suite instatnce .
106+ * @param testSuite test-suite instance .
106107 */
107108 public void endTestSuite (ITestSuite testSuite ) {
108109 TestSuiteResult suiteResult = (TestSuiteResult ) map .remove (testSuite );
@@ -125,7 +126,7 @@ public void endTestSuite(ITestSuite testSuite) {
125126 /**
126127 * Add property in test-suite.
127128 *
128- * @param testSuite test-suite instatnce .
129+ * @param testSuite test-suite instance .
129130 * @param name property name.
130131 * @param value property value.
131132 */
@@ -166,7 +167,8 @@ public void endTestCase(ITestCase testCase) {
166167 public void setSuccess (ITestCase testCase ) {
167168 TestCaseResult caseResult = (TestCaseResult ) map .get (testCase );
168169 caseResult .setSuccess ();
169- failsafeSummary .completed ++;
170+ if (testCase .getLifecycle () != Lifecycle .DRAFT )
171+ failsafeSummary .completed ++;
170172 }
171173
172174 /**
@@ -179,8 +181,10 @@ public void setSuccess(ITestCase testCase) {
179181 public void setError (ITestCase testCase , String message , String trace ) {
180182 TestCaseResult caseResult = (TestCaseResult ) map .get (testCase );
181183 caseResult .setError (message , trace );
182- failsafeSummary .completed ++;
183- failsafeSummary .errors ++;
184+ if (testCase .getLifecycle () != Lifecycle .DRAFT ) {
185+ failsafeSummary .completed ++;
186+ failsafeSummary .errors ++;
187+ }
184188 }
185189
186190 /**
@@ -193,8 +197,10 @@ public void setError(ITestCase testCase, String message, String trace) {
193197 public void setFailure (ITestCase testCase , String message , String trace ) {
194198 TestCaseResult caseResult = (TestCaseResult ) map .get (testCase );
195199 caseResult .setFailure (message , trace );
196- failsafeSummary .completed ++;
197- failsafeSummary .failures ++;
200+ if (testCase .getLifecycle () != Lifecycle .DRAFT ) {
201+ failsafeSummary .completed ++;
202+ failsafeSummary .failures ++;
203+ }
198204 }
199205
200206 /**
0 commit comments