org.catools.common.logger.converters.CTotalRunningTestCountConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common.testng Show documentation
Show all versions of common.testng Show documentation
The common TestNG extensions
The newest version!
package org.catools.common.logger.converters;
import org.apache.logging.log4j.core.config.plugins.Plugin;
import org.apache.logging.log4j.core.pattern.ConverterKeys;
import org.apache.logging.log4j.core.pattern.PatternConverter;
import org.catools.common.testng.listeners.CExecutionStatisticListener;
@Plugin(name = "CTotalRunningTestCountConverter", category = PatternConverter.CATEGORY)
@ConverterKeys({"ETR"})
public class CTotalRunningTestCountConverter extends CBaseExecutionStatisticConverter {
/**
* Constructs an instance of CCurrentRunNumberConverter.
*
* @param stringFormat format to be used. defaults to "%d"
*/
protected CTotalRunningTestCountConverter(final String stringFormat) {
super(
"Total Running", "ETR", stringFormat, () -> CExecutionStatisticListener.getTotalRunning());
}
public static CTotalRunningTestCountConverter newInstance(final String[] options) {
return new CTotalRunningTestCountConverter(validateAndGetOption(options));
}
}