GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Restore the straight quotes the FAQ conversion turned typographic · apache/maven-surefire@92876ca

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • maven-surefire-plugin/src/site/markdown
    • faq.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎maven-surefire-plugin/src/site/markdown/faq.md‎

Copy file name to clipboardExpand all lines: maven-surefire-plugin/src/site/markdown/faq.md
+20-20Lines changed: 20 additions & 20 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ specific language governing permissions and limitations
2121
under the License.
2222
-->
2323

24-
<a name="top"></a>
24+
<a id="top"></a>
2525

2626
# Frequently Asked Questions
2727

2828
1. [What is the difference between maven-failsafe-plugin and maven-surefire-plugin?](#surefire-v-failsafe)
2929
2. [How can I reuse my test code in other modules?](#reuse-test-code)
30-
3. [Surefire fails with the message "The forked VM terminated without properly saying goodbye".](#vm-termination)
30+
3. [Surefire fails with the message &quot;The forked VM terminated without properly saying goodbye&quot;.](#vm-termination)
3131
4. [Crashed Surefire or Failsafe plugin must indicate crashed tests](#crashed-forks)
3232
5. [How can I run GWT tests?](#GWT)
3333
6. [How do I use properties set by other plugins in `argLine`?](#late-property-evaluation)
@@ -36,7 +36,7 @@ under the License.
3636
9. [Corrupted channel by directly writing to native stream in forked JVM](#corruptedstream)
3737
10. [The files cannot be deleted when Jenkins CI killed Maven process and the tests still continue running.](#kill-jvm)
3838

39-
<a name="surefire-v-failsafe"></a>
39+
<a id="surefire-v-failsafe"></a>
4040

4141
### What is the difference between maven-failsafe-plugin and maven-surefire-plugin?
4242

@@ -46,38 +46,38 @@ tests and if any of the tests fail then it will fail the build immediately.
4646
[maven-failsafe-plugin](http://maven.apache.org/plugins/maven-failsafe-plugin/) is designed for running
4747
integration tests, and decouples failing the build if there are test failures from actually running the tests.
4848

49-
<a name="reuse-test-code"></a>
49+
<a id="reuse-test-code"></a>
5050

5151
### How can I reuse my test code in other modules?
5252

5353
Visit this link for your reference,
5454
[Attaching tests](http://maven.apache.org/guides/mini/guide-attached-tests.html). Also see the examples for
5555
[Inclusions and Exclusions of Tests](examples/inclusion-exclusion.html).
5656

57-
<a name="vm-termination"></a>
57+
<a id="vm-termination"></a>
5858

59-
### Surefire fails with the message "The forked VM terminated without properly saying goodbye".
59+
### Surefire fails with the message &quot;The forked VM terminated without properly saying goodbye&quot;.
6060

6161
Surefire does not support tests or any referenced libraries calling `System.exit()` at any time. If they do so,
6262
they are incompatible with Surefire and you should probably file an issue with the library/vendor.
6363

6464
Alternatively the forked VM could also have crashed for a number of reasons. Look for the classical
6565
`hs_err*` files indicating VM crashes or examine the Maven log output when the tests execute. Some
66-
"extraordinary" output from crashing processes may be dumped to the console/log.
66+
&quot;extraordinary&quot; output from crashing processes may be dumped to the console/log.
6767

6868
If this happens on a CI environment and only after it runs for some time, there is a fair chance your test
6969
suite is leaking some kind of OS-level resource that makes things worse at every run. Regular OS-level
7070
monitoring tools may give you some indication.
7171

72-
<a name="crashed-forks"></a>
72+
<a id="crashed-forks"></a>
7373

7474
### Crashed Surefire or Failsafe plugin must indicate crashed tests
7575

7676
After a forked JVM has crashed the console of forked JVM prints *Crashed tests:* and lists the last test which
7777
has crashed. In the console log you can find the message *The forked VM terminated without properly saying
7878
goodbye*.
7979

80-
<a name="GWT"></a>
80+
<a id="GWT"></a>
8181

8282
### How can I run GWT tests?
8383

@@ -92,7 +92,7 @@ to run with Surefire, you need the following settings:
9292

9393
Try `reuseForks=true` and if it doesn't work, fall back to `reuseForks=false`
9494

95-
<a name="late-property-evaluation"></a>
95+
<a id="late-property-evaluation"></a>
9696

9797
### How do I use properties set by other plugins in `argLine`?
9898

@@ -107,16 +107,16 @@ also available with a different value at initialization of the POM model. Otherw
107107
replacement kicks in properly directly before this goal is being executed (instead of when the POM model is
108108
being resolved)*.
109109

110-
<a name="failsafe-jar"></a>
110+
<a id="failsafe-jar"></a>
111111

112112
### How maven-failsafe-plugin allows me to configure the jar file or classes to use?
113113

114-
By default maven-failsafe-plugin uses project artifact file in test classpath if packaging is set to "jar" in
114+
By default maven-failsafe-plugin uses project artifact file in test classpath if packaging is set to &quot;jar&quot; in
115115
pom.xml. This can be modified and for instance set to main project classes if you use configuration parameter
116-
"classesDirectory". This would mean that you set value "${project.build.outputDirectory}" for the parameter
117-
"classesDirectory" in the configuration of plugin.
116+
&quot;classesDirectory&quot;. This would mean that you set value &quot;${project.build.outputDirectory}&quot; for the parameter
117+
&quot;classesDirectory&quot; in the configuration of plugin.
118118

119-
<a name="dumpfiles"></a>
119+
<a id="dumpfiles"></a>
120120

121121
### How to dump fatal errors and stack trace of plugin runtime if it fails?
122122

@@ -134,7 +134,7 @@ follows:
134134
Forked JVM process and plugin process communicate via std/out. If this channel is corrupted, for a whatever
135135
reason, the dump of the corrupted stream appears in *\*.dumpstream*.
136136

137-
<a name="corruptedstream"></a>
137+
<a id="corruptedstream"></a>
138138

139139
### Corrupted channel by directly writing to native stream in forked JVM
140140

@@ -145,19 +145,19 @@ to be corrupted but the Maven will never see the tests finished and build may ha
145145

146146
This warning message appears if you use *FileDescriptor.out* or JVM prints GC summary.
147147

148-
In that case the warning is printed *"Corrupted channel by directly writing to native stream in forked JVM"*,
148+
In that case the warning is printed *&quot;Corrupted channel by directly writing to native stream in forked JVM&quot;*,
149149
and a dump file can be found in Reports directory.
150150

151151
If debug level is enabled then messages of corrupted stream appear in the console.
152152

153-
<a name="kill-jvm"></a>
153+
<a id="kill-jvm"></a>
154154

155155
### The files cannot be deleted when Jenkins CI killed Maven process and the tests still continue running.
156156

157157
Surefire and Failsafe plugin may kill forked Surefire JVM when the standard-input stream is closed. This works
158158
when you stop Maven process by CTRL+C but it is not guaranteed on all platforms. By default, the plugins use
159159
process pipes for interprocess communication. Since version 3.0.0-M5, TCP/IP sockets are also available and can
160160
be selected with the forkNode configuration parameter. See the documentation of the configuration parameter
161-
"enableProcessChecker" for mechanisms to detect and kill orphan forked JVMs. These mechanisms have some
161+
&quot;enableProcessChecker&quot; for mechanisms to detect and kill orphan forked JVMs. These mechanisms have some
162162
drawbacks regarding your OS systems and GC, therefore see the documentation for the parameter
163-
"enableProcessChecker".
163+
&quot;enableProcessChecker&quot;.

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.