Skip to content
Merged
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 src/main/g8/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ThisBuild / organizationName := "example"
lazy val root = (project in file("."))
.settings(
name := "$name$",
libraryDependencies += scalaTest % Test
libraryDependencies += munit % Test
)

// See https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html for instructions on how to publish to Sonatype.
2 changes: 1 addition & 1 deletion src/main/g8/project/Dependencies.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sbt._

object Dependencies {
lazy val scalaTest = "org.scalatest" %% "scalatest" % "3.2.11"
lazy val munit = "org.scalameta" %% "munit" % "0.7.29"
}
9 changes: 3 additions & 6 deletions src/main/g8/src/test/scala/example/HelloSpec.scala
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package example

import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

class HelloSpec extends AnyFlatSpec with Matchers {
"The Hello object" should "say hello" in {
Hello.greeting shouldEqual "hello"
class HelloSpec extends munit.FunSuite {
test("say hello") {
assertEquals(Hello.greeting, "hello")
}
}