mockit.coverage.standalone.CoverageControlMBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmockit Show documentation
Show all versions of jmockit Show documentation
JMockit is a Java toolkit for automated developer testing.
It contains APIs for the creation of the objects to be tested, for mocking dependencies, and for faking external
APIs; JUnit (4 & 5) and TestNG test runners are supported.
It also contains an advanced code coverage tool.
/*
* Copyright (c) 2006 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package mockit.coverage.standalone;
@SuppressWarnings("UnusedDeclaration")
@Description("Control interface for the JMockit Coverage tool running in this JVM instance")
public interface CoverageControlMBean
{
@Description("Type of output to be generated: one or more of \"html\", \"serial\", or \"serial-append\"")
String getOutput();
void setOutput(String output);
@Description("The current working directory, used for output unless specified otherwise")
String getWorkingDir();
@Description("Output directory for the HTML report or the \"coverage.ser\" serialized file")
String getOutputDir();
void setOutputDir(String outputDir);
@Description("Comma-separated list of directories where to search for source files, for the HTML report")
String getSrcDirs();
void setSrcDirs(String srcDirs);
@Description(
"Regular expression for fully qualified class names, to select those considered for coverage " +
"(none by default); accepts a full Java/Perl regex, or an OS-like regex such as \"myPackage.*\"; " +
"alternatively, the special value \"loaded\" selects all classes outside jar files already loaded by the JVM")
String getClasses();
void setClasses(String classes);
@Description("Regular expression for fully qualified class names, to select those NOT considered for coverage")
String getExcludes();
void setExcludes(String excludes);
@Description("Code coverage metrics to be gathered: \"all\", \"line\" (the default), \"path\", or \"line,path\"")
String getMetrics();
void setMetrics(String metrics);
@Description("Generates the desired output with the coverage information gathered so far")
void generateOutput(
@Description("Indicates whether coverage data gathered so far should be discarded after generating the output")
boolean resetState);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy