Skip to content

Fix example in quickStart for Scala 3 #252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/index.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
To maximize your productivity, ScalaTest uses its own extension points to support several styles of testing out of the box.
You can select whatever style best fits your team's experience and culture. For instance, the above example
uses <code>FlatSpec</code>, a good choice for teams wishing to move from XUnit to BDD. When
you run it, you get an informal specification of the software being tested:
you run it, you get an informal specification of the software being tested (the example assumes you are using Scala @{majorMinorScalaVersion}):
</p>
</div>

Expand Down
4 changes: 2 additions & 2 deletions app/views/quickStart.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ <h1>ScalaTest quick start</h1>
<p>
To run it, you will need one more artifact,
<a href="@{quickStartXmlJar}">the Jar file for Scala's XML module</a>.
Once you've downloaded that Jar file, you can run <code>ExampleSpec</code> like this:
Once you've downloaded that Jar file, you can run <code>ExampleSpec</code> like this (the example assumes you are using Scala @{majorMinorScalaVersion}):
</p>

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