Skip to content

Commit 57b7d45

Browse files
authored
Fix plugin name in docs (#61)
1 parent c18a566 commit 57b7d45

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ target/
22

33
# Editor files
44
.dir-locals.el
5+
6+
# IDE files
7+
.idea/
8+
*.iml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ To use the ScalaTest Maven plugin, you need to disable SureFire and enable Scala
3939
<!-- enable scalatest -- >
4040
<plugin>
4141
<groupId>org.scalatest</groupId>
42-
<artifactId>maven-scalatest-plugin</artifactId>
43-
<version>1.0.M2</version>
42+
<artifactId>scalatest-maven-plugin</artifactId>
43+
<version>2.0.0</version>
4444
<configuration>
4545
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
4646
<junitxml>.</junitxml>

notes.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Work done so far
1111
To Use
1212
------
1313
1. Disable maven-surefire-plugin by setting skipTests=true
14-
2. Add maven-scalatest-plugin to <build> section and configure the "test" goal in an execution
14+
2. Add scalatest-maven-plugin to <build> section and configure the "test" goal in an execution
1515
3. Execute "test" phase or directly execute the scalatest:test or scalatest:gui goals
1616

1717

@@ -24,4 +24,4 @@ Future implementation thoughts
2424
2. To really be a replacement for surefire we'd need a replacement for the surefire-report-plugin. Users commonly use the surefire output
2525
for verifying process compliance.
2626
a. We could write a report goal that just dumps the text to a file and links that file into the site but it's far from ideal
27-
b. Once the HTML/Flex reporter is available that the report goal executes that reporter (at least by default)
27+
b. Once the HTML/Flex reporter is available that the report goal executes that reporter (at least by default)

src/site/apt/usage.apt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Usage Documentation
44

55
[[1]] Disable the maven-surefire-plugin
66

7-
[[2]] Configure this maven-scalatest-plugin to run in the test phase
7+
[[2]] Configure this scalatest-maven-plugin to run in the test phase
88

99
[]
1010

11-
To replace the maven-surefire-report-plugin with this plugin, simply add the maven-scalatest-plugin instead of
11+
To replace the maven-surefire-report-plugin with this plugin, simply add the scalatest-maven-plugin instead of
1212
the maven-surefire-report-plugin to the reporting section of the POM.
1313

1414
For example, in the build section of the POM, add something like the following:
@@ -29,7 +29,7 @@ Usage Documentation
2929
<!-- Enable Scalatest -->
3030
<plugin>
3131
<groupId>org.scalatest</groupId>
32-
<artifactId>maven-scalatest-plugin</artifactId>
32+
<artifactId>scalatest-maven-plugin</artifactId>
3333
<executions>
3434
<execution>
3535
<goals>
@@ -50,7 +50,7 @@ Usage Documentation
5050
on the maven-surefire-plugin. There is nothing inherently wrong in having Surefire run your
5151
tests, but if you want all your tests to run through ScalaTest instead, then disabling Surefire
5252
in this manner will keep your tests from running twice. Since the "test" goal of the
53-
maven-scalatest-plugin is tied to the test phase by default you do not need to do this explicitly
53+
scalatest-maven-plugin is tied to the test phase by default you do not need to do this explicitly
5454
in your POM.
5555

5656
Optionally, in the reporting section of the POM you can add something like the following:
@@ -61,7 +61,7 @@ Usage Documentation
6161

6262
<plugin>
6363
<groupId>org.scalatest</groupId>
64-
<artifactId>maven-scalatest-plugin</artifactId>
64+
<artifactId>scalatest-maven-plugin</artifactId>
6565
<configuration>
6666
<fileReporterOptions>...</fileReporterOptions>
6767
</configuration>
@@ -110,7 +110,7 @@ Usage Documentation
110110
...
111111
<plugin>
112112
<groupId>org.scalatest</groupId>
113-
<artifactId>maven-scalatest-plugin</artifactId>
113+
<artifactId>scalatest-maven-plugin</artifactId>
114114
<executions>
115115
<execution>
116116
<goals>
@@ -133,7 +133,7 @@ Usage Documentation
133133
<plugins>
134134
<plugin>
135135
<groupId>org.scalatest</groupId>
136-
<artifactId>maven-scalatest-plugin</artifactId>
136+
<artifactId>scalatest-maven-plugin</artifactId>
137137
<executions>
138138
<execution>
139139
<goals>
@@ -173,4 +173,4 @@ Usage Documentation
173173
The "reporter" goal does not support this level of customization, however, because it doesn't really apply.
174174
Instead, this goal has a "fileReporterOptions" option that allows you to specify the formatting options to
175175
pass to the FileReporter. The plugin itself controls the name of that file, and the location of the file
176-
is configured through the standard "reportOutputDirectory" as is convention in report goals of other plugins.
176+
is configured through the standard "reportOutputDirectory" as is convention in report goals of other plugins.

0 commit comments

Comments
 (0)