summaryrefslogtreecommitdiffstats
path: root/src/test/java/com/beust/jcommander/args/CommandLineArgs.java
blob: 7c8414fac4bb4a0dd5d77ed4a178151a89d4d1cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/**
 * Copyright (C) 2010 the original author or authors.
 * See the notice.md file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.beust.jcommander.args;

import com.beust.jcommander.Parameter;
import com.beust.jcommander.internal.Lists;

import java.util.List;

public class CommandLineArgs {

  @Parameter(description = "The XML suite files to run")
  public List<String> suiteFiles = Lists.newArrayList();

  @Parameter(names = { "-log", "-verbose" }, description = "Level of verbosity")
  public Integer verbose;

  @Parameter(names = "-groups", description = "Comma-separated list of group names to be run")
  public String groups;

  @Parameter(names = "-excludedgroups", description ="Comma-separated list of group names to be " +
      "run")
  public String excludedGroups;
  
  @Parameter(names = "-d", description ="Output directory")
  public String outputDirectory;
  
  @Parameter(names = "-junit", description ="JUnit mode")
  public Boolean junit = Boolean.FALSE;

  @Parameter(names = "-listener", description = "List of .class files or list of class names" +
      " implementing ITestListener or ISuiteListener")
  public String listener;

  @Parameter(names = "-methodselectors", description = "List of .class files or list of class " +
      "names implementing IMethodSelector")
  public String methodSelectors;

  @Parameter(names = "-objectfactory", description = "List of .class files or list of class " +
      "names implementing ITestRunnerFactory")
  public String objectFactory;

  @Parameter(names = "-parallel", description = "Parallel mode (methods, tests or classes)")
  public String parallelMode;
  
  @Parameter(names = "-configfailurepolicy", description = "Configuration failure policy (skip or continue)")
  public String configFailurePolicy;

  @Parameter(names = "-threadcount", description = "Number of threads to use when running tests " +
      "in parallel")
  public Integer threadCount;

  @Parameter(names = "-dataproviderthreadcount", description = "Number of threads to use when " +
      "running data providers")
  public Integer dataProviderThreadCount;

  @Parameter(names = "-suitename", description = "Default name of test suite, if not specified " +
      "in suite definition file or source code")
  public String suiteName;

  @Parameter(names = "-testname", description = "Default name of test, if not specified in suite" +
      "definition file or source code")
  public String testName;

  @Parameter(names = "-reporter", description = "Extended configuration for custom report listener")
  public String reporter;

  /**
   * Used as map key for the complete list of report listeners provided with the above argument
   */
  @Parameter(names = "-reporterslist")
  public String reportersList;

  @Parameter(names = "-usedefaultlisteners", description = "Whether to use the default listeners")
  public String useDefaultListeners = "true";

  @Parameter(names = "-skipfailedinvocationcounts")
  public Boolean skipFailedInvocationCounts;

  @Parameter(names = "-testclass", description = "The list of test classes")
  public String testClass;

  @Parameter(names = "-testnames", description = "The list of test names to run")
  public String testNames;

  @Parameter(names = "-testjar", description = "")
  public String testJar;

  @Parameter(names = "-testRunFactory", description = "")
  public String testRunFactory;

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

  @Parameter(names = "-host", description = "The host")
  public String host;

  @Parameter(names = "-master", description ="Host where the master is")
  public String master;

  @Parameter(names = "-slave", description ="Host where the slave is")
  public String slave;

}