![JAR search and dependency download from the Maven repository](/logo.png)
sft.result.SoutReport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SimpleFunctionalTest Show documentation
Show all versions of SimpleFunctionalTest Show documentation
A JUnit extension to easily adopt functional testing and acceptance testing
The newest version!
/*******************************************************************************
* Copyright (c) 2013, 2014 Sylvain Lézier.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Sylvain Lézier - initial implementation
*******************************************************************************/
package sft.result;
import java.util.ArrayList;
public class SoutReport {
public void generate(UseCaseResult useCaseResult) {
ResultDigest resultDigest = new ResultDigest(useCaseResult);
System.out.println( "Scenario succeeded: "+resultDigest.nbScenariosOk);
if( ! resultDigest.scenariosFailed.isEmpty()){
System.out.println("Scenario failed: "+resultDigest.scenariosFailed.size());
for (ScenarioResult scenarioResult : resultDigest.scenariosFailed) {
System.out.println(" - " + scenarioResult.scenario.getName() );
}
}
if( ! resultDigest.scenariosIgnored.isEmpty()){
System.out.println("Scenario ignored: "+resultDigest.scenariosIgnored.size());
for (ScenarioResult scenarioResult : resultDigest.scenariosIgnored) {
System.out.println(" - " + scenarioResult.scenario.getName() );
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy