Skip to content

Commit

Permalink
Merge pull request #1309 from alexarchambault/test-util
Browse files Browse the repository at this point in the history
Don't retain output of successful ITs on CI
  • Loading branch information
alexarchambault authored Feb 22, 2024
2 parents 1a3d523 + db52044 commit 0a29aee
Show file tree
Hide file tree
Showing 13 changed files with 203 additions and 133 deletions.
13 changes: 9 additions & 4 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import $file.project.settings, settings.{
AlmondRepositories,
AlmondSimpleModule,
AlmondTestModule,
AlmondUnpublishedModule,
BootstrapLauncher,
DependencyListResource,
ExternalSources,
Expand Down Expand Up @@ -389,6 +390,7 @@ trait CoursierLogger extends Cross.Module[String] with AlmondModule {
shared.logger()
)
def ivyDeps = super.ivyDeps() ++ Agg(
Deps.collectionCompat,
Deps.coursierApi,
Deps.scalatags.applyBinaryVersion213_3(scalaVersion())
)
Expand Down Expand Up @@ -536,7 +538,7 @@ object scala extends Module {

trait Examples extends SbtModule {
private def examplesScalaVersion = "2.12.18"
private def baseRepoRoot = os.rel / "out" / "repo"
private def baseRepoRoot = os.sub / "out" / "repo"
def scalaVersion = ScalaVersions.scala3Latest
object test extends SbtModuleTests {
def testFramework = "munit.Framework"
Expand Down Expand Up @@ -578,11 +580,13 @@ trait TestKit extends Cross.Module[String] with CrossSbtModule with Bloop.Module
def ivyDeps = super.ivyDeps() ++ Agg(
Deps.expecty,
Deps.osLib,
Deps.pprint
Deps.pprint,
Deps.testUtil
)
}

trait TestDefinitions extends Cross.Module[String] with CrossSbtModule with Bloop.Module {
trait TestDefinitions extends Cross.Module[String] with AlmondUnpublishedModule with Bloop.Module {
def supports3 = true
def crossScalaVersion = crossValue
def skipBloop = !ScalaVersions.binaries.contains(crossScalaVersion)

Expand Down Expand Up @@ -646,7 +650,8 @@ trait Integration extends SbtModule {
def ivyDeps = super.ivyDeps() ++ Agg(
Deps.munit,
Deps.osLib,
Deps.pprint
Deps.pprint,
Deps.testUtil
)

object test extends SbtModuleTests with TestCommand {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import java.lang.{Long => JLong}
import java.util.UUID
import java.util.concurrent.ConcurrentHashMap

import scala.collection.JavaConverters._
import scala.jdk.CollectionConverters._

class NotebookCacheLogger(
publish: OutputHandler,
Expand Down
Loading

0 comments on commit 0a29aee

Please sign in to comment.