File tree 4 files changed +17
-4
lines changed
4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 38
38
~/Library/Caches/Coursier/v1
39
39
key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
40
40
41
- - name : Run project
41
+ - name : Run the project
42
42
run : sbt run
43
+
44
+ - name : Run the unit tests
45
+ run : sbt test
Original file line number Diff line number Diff line change 4
4
5
5
## Usage
6
6
7
- This is a normal sbt project. You can compile code with ` sbt compile ` and run it
8
- with ` sbt run ` . ` sbt console ` will start a Scala 3 REPL.
7
+ This is a normal sbt project. You can compile code with ` sbt compile ` , run the main
8
+ method with ` sbt run ` and run the tests with ` sbt test ` . ` sbt console ` will start a Scala 3 REPL.
9
9
10
10
If compiling this example project fails, you probably have a global sbt plugin
11
11
that does not work with Scala 3. You might try disabling plugins in
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ lazy val root = project
4
4
name := " scala3-example-project" ,
5
5
description := " Example sbt project that compiles using Scala 3" ,
6
6
version := " 0.1.0" ,
7
- scalaVersion := " 3.1.1"
7
+ scalaVersion := " 3.1.1" ,
8
+ libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
8
9
)
Original file line number Diff line number Diff line change
1
+ // For more information on writing tests, see
2
+ // https://scalameta.org/munit/docs/getting-started.html
3
+ class MySuite extends munit.FunSuite {
4
+ test(" example test that succeeds" ) {
5
+ val obtained = 42
6
+ val expected = 42
7
+ assertEquals(obtained, expected)
8
+ }
9
+ }
You can’t perform that action at this time.
0 commit comments