Skip to content

Commit 1fd22de

Browse files
committed
Fox example in quickStart for Scala 3
- Fix the example on the quickStart page - Mention version of Scala in the examples on the index and the quickStart pages
1 parent 9828f45 commit 1fd22de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/views/index.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
To maximize your productivity, ScalaTest uses its own extension points to support several styles of testing out of the box.
7070
You can select whatever style best fits your team's experience and culture. For instance, the above example
7171
uses <code>FlatSpec</code>, a good choice for teams wishing to move from XUnit to BDD. When
72-
you run it, you get an informal specification of the software being tested:
72+
you run it, you get an informal specification of the software being tested (the example assumes you are using Scala @{majorMinorScalaVersion}):
7373
</p>
7474
</div>
7575

app/views/quickStart.scala.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ <h1>ScalaTest quick start</h1>
7171
<p>
7272
To run it, you will need one more artifact,
7373
<a href="@{quickStartXmlJar}">the Jar file for Scala's XML module</a>.
74-
Once you've downloaded that Jar file, you can run <code>ExampleSpec</code> like this:
74+
Once you've downloaded that Jar file, you can run <code>ExampleSpec</code> like this (the example assumes you are using Scala @{majorMinorScalaVersion}):
7575
</p>
7676

7777
<pre class="scala">
7878
$ CLASSPATH=scalatest-app_@{majorMinorScalaVersion}-@{latestVersion}.jar:scala-xml_3-2.3.0.jar
79-
$ scala -cp $CLASSPATH org.scalatest.run ExampleSpec
79+
$ scala -cp $CLASSPATH --main-class org.scalatest.run -- ExampleSpec
8080
<span class="cyanincolor">Run starting. Expected test count is: 2</span>
8181
<span class="greenincolor">ExampleSpec:
8282
A Stack

0 commit comments

Comments
 (0)