From 1480d6484032d9332707aa32e15bee337e5bb5ee Mon Sep 17 00:00:00 2001 From: lombardo-chcg Date: Sun, 27 Aug 2017 18:56:55 -0500 Subject: [PATCH] add test framework --- build.sbt | 4 ++++ src/test/scala/com/lombardo/app/SampleTest.scala | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/test/scala/com/lombardo/app/SampleTest.scala diff --git a/build.sbt b/build.sbt index 294d657..55c490e 100644 --- a/build.sbt +++ b/build.sbt @@ -5,3 +5,7 @@ version := "0.0.1" mainClass in assembly := Some("com.lombardo.app.Main") scalaVersion := "2.12.1" + +libraryDependencies ++= Seq( + "org.scalatest" %% "scalatest" % "3.0.1" % "test" +) diff --git a/src/test/scala/com/lombardo/app/SampleTest.scala b/src/test/scala/com/lombardo/app/SampleTest.scala new file mode 100644 index 0000000..8cbbd5a --- /dev/null +++ b/src/test/scala/com/lombardo/app/SampleTest.scala @@ -0,0 +1,9 @@ +package com.lombardo.app + +import org.scalatest.{FlatSpec, Matchers} + +class SampleTest extends FlatSpec with Matchers { + it should "run a sample test" in { + 7 + 9 should be(16) + } +}