View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.plugin.surefire;
20  
21  import java.io.File;
22  import java.util.List;
23  
24  /**
25   * This interface contains all the common parameters that have different implementations in Surefire vs IntegrationTest
26   *
27   * @author Stephen Connolly
28   */
29  public interface SurefireExecutionParameters {
30      boolean isSkipTests();
31  
32      void setSkipTests(boolean skipTests);
33  
34      boolean isSkipExec();
35  
36      void setSkipExec(boolean skipExec);
37  
38      boolean isSkip();
39  
40      void setSkip(boolean skip);
41  
42      File getBasedir();
43  
44      void setBasedir(File basedir);
45  
46      File getTestClassesDirectory();
47  
48      void setTestClassesDirectory(File testClassesDirectory);
49  
50      File getMainBuildPath();
51  
52      void setMainBuildPath(File mainBuildPath);
53  
54      File getReportsDirectory();
55  
56      void setReportsDirectory(File reportsDirectory);
57  
58      File getTestSourceDirectory();
59  
60      void setTestSourceDirectory(File testSourceDirectory);
61  
62      String getTest();
63  
64      void setTest(String test);
65  
66      List<String> getIncludes();
67  
68      void setIncludes(List<String> includes);
69  
70      List<String> getExcludes();
71  
72      void setExcludes(List<String> excludes);
73  
74      String getLocalRepositoryPath();
75  
76      boolean isPrintSummary();
77  
78      void setPrintSummary(boolean printSummary);
79  
80      String getReportFormat();
81  
82      void setReportFormat(String reportFormat);
83  
84      boolean isUseFile();
85  
86      void setUseFile(boolean useFile);
87  
88      String getDebugForkedProcess();
89  
90      void setDebugForkedProcess(String debugForkedProcess);
91  
92      int getForkedProcessTimeoutInSeconds();
93  
94      void setForkedProcessTimeoutInSeconds(int forkedProcessTimeoutInSeconds);
95  
96      int getForkedProcessExitTimeoutInSeconds();
97  
98      void setForkedProcessExitTimeoutInSeconds(int forkedProcessTerminationTimeoutInSeconds);
99  
100     double getParallelTestsTimeoutInSeconds();
101 
102     void setParallelTestsTimeoutInSeconds(double parallelTestsTimeoutInSeconds);
103 
104     double getParallelTestsTimeoutForcedInSeconds();
105 
106     void setParallelTestsTimeoutForcedInSeconds(double parallelTestsTimeoutForcedInSeconds);
107 
108     boolean isUseSystemClassLoader();
109 
110     void setUseSystemClassLoader(boolean useSystemClassLoader);
111 
112     boolean isUseManifestOnlyJar();
113 
114     void setUseManifestOnlyJar(boolean useManifestOnlyJar);
115 
116     String getEncoding();
117 
118     void setEncoding(String encoding);
119 
120     boolean getFailIfNoSpecifiedTests();
121 
122     void setFailIfNoSpecifiedTests(boolean failIfNoSpecifiedTests);
123 
124     int getSkipAfterFailureCount();
125 
126     String getShutdown();
127 
128     String[] getIncludeJUnit5Engines();
129 
130     void setIncludeJUnit5Engines(String[] includeJUnit5Engines);
131 
132     String[] getExcludeJUnit5Engines();
133 
134     void setExcludeJUnit5Engines(String[] excludeJUnit5Engines);
135 }