Skip to content

Commit

Permalink
Merge branch 'main' into update/fs2-core-3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Jul 30, 2023
2 parents a9de698 + 98f9b15 commit 3eba9ee
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.7.1"
version = "3.7.11"

runner.dialect=scala213source3

Expand Down
5 changes: 3 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ sonatypeCredentialHost := "s01.oss.sonatype.org"
val Version = new {
object CE3 {
val fs2 = "3.7.0"
val ce = "3.4.6"

val ce = "3.4.11"
}

val expecty = "0.16.0"
Expand Down Expand Up @@ -228,7 +229,7 @@ lazy val scalacheck = projectMatrix

lazy val discipline = projectMatrix
.in(file("modules/discipline"))
.sparse(withJS = true, withScala3 = true)
.full
.dependsOn(core, cats)
.settings(
name := "discipline",
Expand Down
15 changes: 13 additions & 2 deletions docs/cats_effect_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,20 @@ title: Cats-effect usage

## Installation

You'll need to install the following depending to test your programs against `cats.effect.IO`
You'll need to install the following dependencies to test your programs against `cats.effect.IO`

### SBT (1.9.0+)

Newer versions of SBT have [`weaver` automatically integrated](https://github.com/sbt/sbt/pull/7263).

```scala
libraryDependencies += "com.disneystreaming" %% "weaver-cats" % "@VERSION@" % Test
```

### SBT (older versions)

Internally, SBT has a hardcoded list of test frameworks it integrates with. `weaver` must be manually added to this list.

### SBT
```scala
libraryDependencies += "com.disneystreaming" %% "weaver-cats" % "@VERSION@" % Test
testFrameworks += new TestFramework("weaver.framework.CatsEffect")
Expand Down
19 changes: 16 additions & 3 deletions modules/core/cats/src/weaver/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,23 @@ import cats.effect.IO

package object weaver {

type IOSuite = MutableIOSuite
type SimpleIOSuite = SimpleMutableIOSuite
/**
* Extend this when each test in the suite returns an `Resource[IO, Res]` for
* some shared resource `Res`
*/
type IOSuite = MutableIOSuite

/**
* Extend this when each test in the suite returns an `IO[_]`
*/
type SimpleIOSuite = SimpleMutableIOSuite

type GlobalResource = IOGlobalResource
type GlobalRead = GlobalResourceF.Read[IO]
type GlobalWrite = GlobalResourceF.Write[IO]
type FunSuite = FunSuiteIO

/**
* Extend this when each test in the suite is pure and does not return `IO[_]`
*/
type FunSuite = FunSuiteIO
}
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.8.2
sbt.version=1.8.3
8 changes: 4 additions & 4 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// format: off
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.4")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.0")

addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.2")

addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.10")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.14")

addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.9.0")
addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.9.1")

addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.11")

Expand Down

0 comments on commit 3eba9ee

Please sign in to comment.