Skip to content

Commit

Permalink
Dummy test for cats-effect
Browse files Browse the repository at this point in the history
  • Loading branch information
ulitol97 committed Apr 25, 2022
1 parent dab5445 commit ddc9cac
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ lazy val comet = (project in file("."))
fs2Kafka,
shexs,
shaclex,
wesoUtils
wesoUtils,
// testing
scalaTest,
scalaTestPlus,
catsEffectTesting
),
buildInfoSettings,
// https://stackoverflow.com/q/66372308/9744696
Expand Down Expand Up @@ -55,7 +59,9 @@ lazy val shexsVersion = "0.2.2"
lazy val umlShaclZexVersion = "0.0.82"
lazy val wesoUtilsVersion = "0.2.4"
// Testing dependencies
lazy val catsEffectTestingVersion = "1.4.0"
lazy val scalaTestVersion = "3.2.11" // Usual testing
lazy val scalaTestPlusVersion = "3.2.11.0" // Integration of ScalaTest with ScalaCheck
lazy val catsEffectTestingVersion = "1.4.0" // Integration of ScalaTest with cats-effect
// -------------------------------------------------------------------------- //
// Core dependencies
lazy val catsEffect = "org.typelevel" %% "cats-effect" % catsVersion
Expand All @@ -67,4 +73,6 @@ lazy val shexs = "es.weso" %% "shexs" % shexsVersion
lazy val shaclex = "es.weso" %% "shaclex" % shaclexVersion
lazy val wesoUtils = "es.weso" %% "utilstest" % wesoUtilsVersion
// Testing dependencies
lazy val scalaTest = "org.scalatest" %% "scalatest" % scalaTestVersion % Test
lazy val scalaTestPlus = "org.scalatestplus" %% "scalacheck-1-15" % scalaTestPlusVersion % Test
lazy val catsEffectTesting = "org.typelevel" %% "cats-effect-testing-scalatest" % catsEffectTestingVersion % Test
15 changes: 15 additions & 0 deletions src/test/scala/validation/ouputs/DummyTest.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package org.ragna.comet
package validation.ouputs

import cats.effect.IO
import cats.effect.testing.scalatest.AsyncIOSpec
import org.scalatest.freespec.AsyncFreeSpec
import org.scalatest.matchers.should.Matchers

class DummyTest extends AsyncFreeSpec with AsyncIOSpec with Matchers {
"My Code " - {
"works" in {
IO(1).asserting(_ shouldBe 1)
}
}
}

0 comments on commit ddc9cac

Please sign in to comment.