Skip to content

Commit

Permalink
Fixing documentation discrepancies for configs
Browse files Browse the repository at this point in the history
  • Loading branch information
krmahadevan committed Dec 27, 2023
1 parent a2b5230 commit 94bf011
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions testng-core/src/main/java/org/testng/CommandLineArgs.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class CommandLineArgs {
@Parameter(
names = OBJECT_FACTORY,
description =
"List of .class files or list of class " + "names implementing ITestRunnerFactory")
"Fully qualified class name that implements org.testng.ITestObjectFactory which can be used to create test class and listener instances.")
public String objectFactory;

public static final String PARALLEL = "-parallel";
Expand Down Expand Up @@ -171,16 +171,6 @@ public class CommandLineArgs {
description = "The factory used to create tests")
public String testRunnerFactory;

public static final String PORT = "-port";

@Parameter(names = PORT, description = "The port")
public Integer port;

public static final String HOST = "-host";

@Parameter(names = HOST, description = "The host", hidden = true)
public String host;

public static final String METHODS = "-methods";

@Parameter(names = METHODS, description = "Comma separated of test methods")
Expand All @@ -191,7 +181,7 @@ public class CommandLineArgs {

@Parameter(
names = SUITE_THREAD_POOL_SIZE,
description = "Size of the thread pool to use" + " to run suites")
description = "Size of the thread pool to use to run suites")
public Integer suiteThreadPoolSize = SUITE_THREAD_POOL_SIZE_DEFAULT;

public static final String RANDOMIZE_SUITES = "-randomizesuites";
Expand All @@ -202,11 +192,6 @@ public class CommandLineArgs {
description = "Whether to run suites in same order as specified in XML or not")
public Boolean randomizeSuites = Boolean.FALSE;

public static final String DEBUG = "-debug";

@Parameter(names = DEBUG, hidden = true, description = "Used to debug TestNG")
public Boolean debug = Boolean.FALSE;

public static final String ALWAYS_RUN_LISTENERS = "-alwaysrunlisteners";

@Parameter(
Expand Down Expand Up @@ -272,7 +257,8 @@ public class CommandLineArgs {

@Parameter(
names = GENERATE_RESULTS_PER_SUITE,
description = "Should TestNG consider failures in Data Providers as test failures.")
description =
"Should TestNG generate results on a per suite basis by creating a sub directory for each suite and dumping results into it.")
public Boolean generateResultsPerSuite = false;

public static final String SHARE_THREAD_POOL_FOR_DATA_PROVIDERS =
Expand Down

0 comments on commit 94bf011

Please sign in to comment.