From 2eb011b0e3859a686a6a72aa12d958c30413f5c4 Mon Sep 17 00:00:00 2001 From: Baccata Date: Sat, 23 Mar 2024 12:23:18 +0000 Subject: [PATCH] deploy: b1988f87965433522484abb68fe3ed967a6fc37c --- features/discipline.html | 14 ++++---- features/expectations.html | 48 +++++++++++++-------------- features/funsuite.html | 4 +-- features/logging.html | 4 +-- features/resources.html | 4 +-- features/scalacheck.html | 14 ++++---- features/tagging.html | 4 +-- overview/installation.html | 8 ++--- samples/multiple_suites_failures.html | 8 ++--- samples/multiple_suites_logging.html | 6 ++-- samples/multiple_suites_success.html | 8 ++--- 11 files changed, 61 insertions(+), 61 deletions(-) diff --git a/features/discipline.html b/features/discipline.html index 482b2c8e..d90f3079 100644 --- a/features/discipline.html +++ b/features/discipline.html @@ -143,12 +143,12 @@

SBT

-
libraryDependencies +=  "com.disneystreaming" %% "weaver-discipline" % "0.0-a1e39c4-SNAPSHOT" % Test
+
libraryDependencies +=  "com.disneystreaming" %% "weaver-discipline" % "0.0-b1988f8-SNAPSHOT" % Test

Mill

object test extends Tests {
   def ivyDeps = Agg(
-    ivy"com.disneystreaming::weaver-discipline:0.0-a1e39c4-SNAPSHOT"
+    ivy"com.disneystreaming::weaver-discipline:0.0-b1988f8-SNAPSHOT"
   )
 }
@@ -164,14 +164,14 @@

 repl.MdocSessionMdocAppDisciplineTests
-Int: eq.antisymmetry eq 32ms
+Int: eq.antisymmetry eq 31ms
 Int: eq.reflexivity eq 5ms
 Int: eq.symmetry eq 8ms
-Int: eq.transitivity eq 7ms
-Boolean: eq.antisymmetry eq 5ms
-Boolean: eq.reflexivity eq 1ms
+Int: eq.transitivity eq 8ms
+Boolean: eq.antisymmetry eq 6ms
+Boolean: eq.reflexivity eq 2ms
 Boolean: eq.symmetry eq 2ms
-Boolean: eq.transitivity eq 1ms
+Boolean: eq.transitivity eq 3ms
 
 Total 8, Failed 0, Passed 8, Ignored 0, Cancelled 0
 
diff --git a/features/expectations.html b/features/expectations.html index 9169111e..3edd2116 100644 --- a/features/expectations.html +++ b/features/expectations.html @@ -335,37 +335,37 @@

Example suite report

 repl.MdocSessionMdocAppExpectationsSuite
-Simple expectations (success) 26ms
-And/Or composition (success) 37ms
+Simple expectations (success) 25ms
+And/Or composition (success) 31ms
 Varargs composition (success) 0ms
-Working with collections (success) 22ms
+Working with collections (success) 37ms
 Strict equality (success) 4ms
-Relaxed equality comparison (success) 1ms
-Simple expectations (failure) 47ms
-And/Or composition (failure) 49ms
-Varargs composition (failure) 18ms
-Working with collections (failure 1) 20ms
-Working with collections (failure 2) 3ms
-Strict equality (failure 1) 6ms
-Strict equality (failure 2) 12ms
-Strict equality (failure 3) 2ms
-Relaxed equality comparison (failure) 1ms
+Relaxed equality comparison (success) 0ms
+Simple expectations (failure) 45ms
+And/Or composition (failure) 42ms
+Varargs composition (failure) 24ms
+Working with collections (failure 1) 13ms
+Working with collections (failure 2) 4ms
+Strict equality (failure 1) 4ms
+Strict equality (failure 2) 4ms
+Strict equality (failure 3) 1ms
+Relaxed equality comparison (failure) 5ms
 Non macro-based expectations 0ms
-Failing fast expectations 11ms
+Failing fast expectations 12ms
 
 *************FAILURES*************
 repl.MdocSessionMdocAppExpectationsSuite
-Simple expectations (failure) 47ms
  assertion failed (expectations.md:33)

  expect(A.B.C.test(z) % 7 == 0)
               |    |  |   |
               20   15 6   false
-And/Or composition (failure) 49ms
 [0] assertion failed (expectations.md:42)
 [0] 
 [0] (expect(1 != 2) and expect(2 == 1)) or expect(2 == 3)


 [1] assertion failed (expectations.md:42)
 [1] 
 [1] (expect(1 != 2) and expect(2 == 1)) or expect(2 == 3)
-Varargs composition (failure) 18ms
  assertion failed (expectations.md:52)

  expect.all(1 + 1 == 2, 2 + 2 == 5, 4 * 2 == 8)
-Working with collections (failure 1) 20ms
  Values not equal: (expectations.md:63)

  
[world]  |  [hello] -Working with collections (failure 2) 3ms
  assertion failed (expectations.md:67)

  exists(Option(39))(i => expect(i > 50))
                                 | |
                                 | false
                                 39
-Strict equality (failure 1) 6ms
  Values not equal: (expectations.md:82)

  
[hello]  |  [world] -Strict equality (failure 2) 12ms
  Values not equal: (expectations.md:86)

  
List(1, [2], 3)  |  List(1, [19], 3) -Strict equality (failure 3) 2ms
  Values not equal: (expectations.md:90)

  
Test([25].0)  |  Test([50].0) -Relaxed equality comparison (failure) 1ms
  Values not equal: (expectations.md:110)

  
Hello to [25].0  |  Hello to [50].0 +Simple expectations (failure) 45ms
  assertion failed (expectations.md:33)

  expect(A.B.C.test(z) % 7 == 0)
               |    |  |   |
               20   15 6   false
+And/Or composition (failure) 42ms
 [0] assertion failed (expectations.md:42)
 [0] 
 [0] (expect(1 != 2) and expect(2 == 1)) or expect(2 == 3)


 [1] assertion failed (expectations.md:42)
 [1] 
 [1] (expect(1 != 2) and expect(2 == 1)) or expect(2 == 3)
+Varargs composition (failure) 24ms
  assertion failed (expectations.md:52)

  expect.all(1 + 1 == 2, 2 + 2 == 5, 4 * 2 == 8)
+Working with collections (failure 1) 13ms
  Values not equal: (expectations.md:63)

  
[world]  |  [hello] +Working with collections (failure 2) 4ms
  assertion failed (expectations.md:67)

  exists(Option(39))(i => expect(i > 50))
                                 | |
                                 | false
                                 39
+Strict equality (failure 1) 4ms
  Values not equal: (expectations.md:82)

  
[hello]  |  [world] +Strict equality (failure 2) 4ms
  Values not equal: (expectations.md:86)

  
List(1, [2], 3)  |  List(1, [19], 3) +Strict equality (failure 3) 1ms
  Values not equal: (expectations.md:90)

  
Test([25].0)  |  Test([50].0) +Relaxed equality comparison (failure) 5ms
  Values not equal: (expectations.md:110)

  
Hello to [25].0  |  Hello to [50].0 Non macro-based expectations 0ms
  Condition failed (expectations.md:115) -Failing fast expectations 11ms
  assertion failed (expectations.md:121)

  _ <- expect(h.isEmpty).failFast
              | |
              | false
              hello
+Failing fast expectations 12ms
  assertion failed (expectations.md:121)

  _ <- expect(h.isEmpty).failFast
              | |
              | false
              hello
Total 17, Failed 11, Passed 6, Ignored 0, Cancelled 0
diff --git a/features/funsuite.html b/features/funsuite.html index 14d81688..0ec9ef07 100644 --- a/features/funsuite.html +++ b/features/funsuite.html @@ -147,12 +147,12 @@

Pure tests

 repl.MdocSessionMdocAppCatsFunSuite
 asserts 1ms
-fails 2ms
+fails 1ms
 throws 0ms
 
 *************FAILURES*************
 repl.MdocSessionMdocAppCatsFunSuite
-fails 2ms
  assertion failed (funsuite.md:11)

  test("fails")   { expect(Some(25).contains(5)) }
                           |        |
                           Some(25) false
+fails 1ms
  assertion failed (funsuite.md:11)

  test("fails")   { expect(Some(25).contains(5)) }
                           |        |
                           Some(25) false
throws 0ms
  RuntimeException: oops

  funsuite.md:13                repl.MdocSession$MdocApp$CatsFunSuite$$anonfun$3#apply
  funsuite.md:13                repl.MdocSession$MdocApp$CatsFunSuite$$anonfun$3#apply
  Try.scala:210                 scala.util.Try$#apply
  Test.scala:31                 weaver.Test$#pure
  suites.scala:187              weaver.FunSuiteF#$anonfun$test$1
  suites.scala:197              weaver.FunSuiteF#$anonfun$pureSpec$1
  List.scala:250                scala.collection.immutable.List#map
  List.scala:79                 scala.collection.immutable.List#map
  suites.scala:197              weaver.FunSuiteF#pureSpec
  suites.scala:201              weaver.FunSuiteF#spec
  Runner.scala:33               weaver.Runner#$anonfun$run$5
  Stream.scala:2286             fs2.Stream#$anonfun$parEvalMapActionImpl$10
  ApplicativeError.scala:269    cats.ApplicativeError#catchNonFatal
  ApplicativeError.scala:268    cats.ApplicativeError#catchNonFatal$
  IO.scala:1769                 cats.effect.IO$$anon$5#catchNonFatal
  Stream.scala:2286             fs2.Stream#$anonfun$parEvalMapActionImpl$9
  IOFiber.scala:1204            cats.effect.IOFiber#succeeded
  IOFiber.scala:351             cats.effect.IOFiber#runLoop
  IOFiber.scala:1366            cats.effect.IOFiber#execR
  IOFiber.scala:112             cats.effect.IOFiber#run
  WorkerThread.scala:743        cats.effect.unsafe.WorkerThread#run
Total 3, Failed 2, Passed 1, Ignored 0, Cancelled 0 diff --git a/features/logging.html b/features/logging.html index 6306d5eb..bef5fef3 100644 --- a/features/logging.html +++ b/features/logging.html @@ -163,11 +163,11 @@

Logging information

 repl.MdocSessionMdocAppLoggedTests
 Good requests lead to good results 6ms
-Just logging some stuff 6ms
+Just logging some stuff 7ms
 
 *************FAILURES*************
 repl.MdocSessionMdocAppLoggedTests
-Just logging some stuff 6ms
  assertion failed (logging.md:20)

  } yield expect(2 + 2 == 5)


    [INFO] 16:47:04 [logging.md:19] oopsie daisy +Just logging some stuff 7ms
  assertion failed (logging.md:20)

  } yield expect(2 + 2 == 5)


    [INFO] 12:23:11 [logging.md:19] oopsie daisy Total 2, Failed 1, Passed 1, Ignored 0, Cancelled 0
diff --git a/features/resources.html b/features/resources.html index 8a31d2a3..119b7c4b 100644 --- a/features/resources.html +++ b/features/resources.html @@ -140,7 +140,7 @@

Sharing resources

import cats.effect._ // Using http4s -import org.http4s.blaze.client._ +import org.http4s.ember.client._ import org.http4s.client._ object HttpSuite extends IOSuite { @@ -148,7 +148,7 @@

Sharing resources

// Sharing a single http client across all tests override type Res = Client[IO] override def sharedResource : Resource[IO, Res] = - BlazeClientBuilder[IO].resource + EmberClientBuilder.default[IO].build // The test receives the shared client as an argument test("Good requests lead to good results") { httpClient => diff --git a/features/scalacheck.html b/features/scalacheck.html index 1da56b04..ce4930aa 100644 --- a/features/scalacheck.html +++ b/features/scalacheck.html @@ -143,12 +143,12 @@

SBT

-
libraryDependencies +=  "com.disneystreaming" %% "weaver-scalacheck" % "0.0-a1e39c4-SNAPSHOT" % Test
+
libraryDependencies +=  "com.disneystreaming" %% "weaver-scalacheck" % "0.0-b1988f8-SNAPSHOT" % Test

Mill

object test extends Tests {
   def ivyDeps = Agg(
-    ivy"com.disneystreaming::weaver-scalacheck:0.0-a1e39c4-SNAPSHOT"
+    ivy"com.disneystreaming::weaver-scalacheck:0.0-b1988f8-SNAPSHOT"
   )
 }
@@ -202,14 +202,14 @@

 repl.MdocSessionMdocAppForallExamples
-Single Gen form 106ms
-Multiple Gen form 102ms
-Arbitrary form 100ms
-Failure example 30ms
+Single Gen form 140ms
+Multiple Gen form 139ms
+Arbitrary form 127ms
+Failure example 63ms
 
 *************FAILURES*************
 repl.MdocSessionMdocAppForallExamples
-Failure example 30ms
 [0] Property test failed on try 1 with seed Seed.fromBase64("3CAeKpro3RMXZaqss-8DQrweWsfQ9mZmbwtp4p_MCYB=") and input (1,1293051911) (modules/scalacheck/shared/src/main/scala/weaver/scalacheck/Checkers.scala:194)

 [1] assertion failed (scalacheck.md:53)
 [1] 
 [1] expect(a1 + a2 % 2 == 0)
 [1]        |  | |  |   |
 [1]        1  2 |  1   false
 [1]             1293051911
+Failure example 63ms
 [0] Property test failed on try 1 with seed Seed.fromBase64("CuuXUJguRwxOuEy8P3TBY0ICipOZjHk-Z8nEltrEQNK=") and input (2147483647,842081816) (modules/scalacheck/shared/src/main/scala/weaver/scalacheck/Checkers.scala:194)

 [1] assertion failed (scalacheck.md:53)
 [1] 
 [1] expect(a1 + a2 % 2 == 0)
 [1]        |  | |  |   |
 [1]        |  | |  0   false
 [1]        |  | 842081816
 [1]        |  2147483647
 [1]        2147483647
Total 4, Failed 1, Passed 3, Ignored 0, Cancelled 0
diff --git a/features/tagging.html b/features/tagging.html index 4fcb9e7b..bc413923 100644 --- a/features/tagging.html +++ b/features/tagging.html @@ -162,12 +162,12 @@

Tagging

 repl.MdocSessionMdocAppTaggingSuite
 Only on CI 15ms
-Another on CI 16ms
+Another on CI 12ms
 
 *************FAILURES*************
 repl.MdocSessionMdocAppTaggingSuite
 Only on CI 15ms
  assertion failed (tagging.md:25)

  } yield expect(x == y)
                 | |  |
                 1 |  2
                   false
-Another on CI 16ms
  assertion failed (tagging.md:34)

  } yield expect(x == y)
                 | |  |
                 1 |  2
                   false
+Another on CI 12ms
  assertion failed (tagging.md:34)

  } yield expect(x == y)
                 | |  |
                 1 |  2
                   false
Total 2, Failed 2, Passed 0, Ignored 0, Cancelled 0
diff --git a/overview/installation.html b/overview/installation.html index cdf51209..238bb3e1 100644 --- a/overview/installation.html +++ b/overview/installation.html @@ -142,23 +142,23 @@

Installation

SBT (1.9.0+)

Newer versions of SBT have weaver automatically integrated.

-
libraryDependencies +=  "com.disneystreaming" %% "weaver-cats" % "0.0-a1e39c4-SNAPSHOT" % Test
+
libraryDependencies +=  "com.disneystreaming" %% "weaver-cats" % "0.0-b1988f8-SNAPSHOT" % Test

SBT (older versions)

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

-
libraryDependencies +=  "com.disneystreaming" %% "weaver-cats" % "0.0-a1e39c4-SNAPSHOT" % Test
+        
libraryDependencies +=  "com.disneystreaming" %% "weaver-cats" % "0.0-b1988f8-SNAPSHOT" % Test
 testFrameworks += new TestFramework("weaver.framework.CatsEffect")

Mill

object test extends Tests {
   def ivyDeps = Agg(
-    ivy"com.disneystreaming::weaver-cats:0.0-a1e39c4-SNAPSHOT"
+    ivy"com.disneystreaming::weaver-cats:0.0-b1988f8-SNAPSHOT"
   )
   def testFramework = "weaver.framework.CatsEffect"
 }

scala-cli

-
//> using lib "com.disneystreaming::weaver-cats:0.0-a1e39c4-SNAPSHOT"
+        
//> using lib "com.disneystreaming::weaver-cats:0.0-b1988f8-SNAPSHOT"
 //> using testFramework "weaver.framework.CatsEffect" // this may neccessary if you have other TestFramework on your dependencies

Usage

diff --git a/samples/multiple_suites_failures.html b/samples/multiple_suites_failures.html index b5073e3b..5c1af7fb 100644 --- a/samples/multiple_suites_failures.html +++ b/samples/multiple_suites_failures.html @@ -161,17 +161,17 @@

Failures

The report looks like this:

 repl.MdocSessionMdocAppMySuite
-failing test 1 2ms
+failing test 1 1ms
 
 repl.MdocSessionMdocAppMyAnotherSuite
-failing test 2 3ms
+failing test 2 6ms
 
 *************FAILURES*************
 repl.MdocSessionMdocAppMySuite
-failing test 1 2ms
  assertion failed (multiple_suites_failures.md:18)

  expect(1 >= 2)
+failing test 1 1ms
  assertion failed (multiple_suites_failures.md:18)

  expect(1 >= 2)
repl.MdocSessionMdocAppMyAnotherSuite -failing test 2 3ms
  assertion failed (multiple_suites_failures.md:34)
 (multiple_suites_failures.md:31)

  def check(x : String) = expect(x.length > 10)
                                 | |      |
                                 | 10     false
                                 ezUewlGGHa
+failing test 2 6ms
  assertion failed (multiple_suites_failures.md:34)
 (multiple_suites_failures.md:31)

  def check(x : String) = expect(x.length > 10)
                                 | |      |
                                 | 10     false
                                 dYX9wdcI2F
Total 2, Failed 2, Passed 0, Ignored 0, Cancelled 0
diff --git a/samples/multiple_suites_logging.html b/samples/multiple_suites_logging.html index 862d8a26..df1dc8d3 100644 --- a/samples/multiple_suites_logging.html +++ b/samples/multiple_suites_logging.html @@ -170,14 +170,14 @@

Logging

The report would look something like this:

 repl.MdocSessionMdocAppMySuite
-logging for success 9ms
+logging for success 11ms
 
 repl.MdocSessionMdocAppMyAnotherSuite
-failure should print logs 12ms
+failure should print logs 14ms
 
 *************FAILURES*************
 repl.MdocSessionMdocAppMyAnotherSuite
-failure should print logs 12ms
  assertion failed (multiple_suites_logging.md:41)

  } yield expect(x.length > 20)
                 | |      |
                 | 10     false
                 i7PMghxIau


    [INFO]  16:47:07 [multiple_suites_logging.md:38] Starting the test...
        time    -> 1711126027
        purpose -> docs
    [DEBUG] 16:47:07 [multiple_suites_logging.md:40] Generated random string: i7PMghxIau +failure should print logs 14ms
  assertion failed (multiple_suites_logging.md:41)

  } yield expect(x.length > 20)
                 | |      |
                 | 10     false
                 wr6FXn6sBd


    [INFO]  12:23:14 [multiple_suites_logging.md:38] Starting the test...
        time    -> 1711196594
        purpose -> docs
    [DEBUG] 12:23:14 [multiple_suites_logging.md:40] Generated random string: wr6FXn6sBd Total 2, Failed 1, Passed 1, Ignored 0, Cancelled 0
diff --git a/samples/multiple_suites_success.html b/samples/multiple_suites_success.html index efce5f4e..b71f098f 100644 --- a/samples/multiple_suites_success.html +++ b/samples/multiple_suites_success.html @@ -164,11 +164,11 @@

Successes

}

The report looks like this:

-repl.MdocSessionMdocAppMySuite
-hello side-effects 2ms
-
 repl.MdocSessionMdocAppMyAnotherSuite
-double reversing is identity 3ms
+double reversing is identity 1ms
+
+repl.MdocSessionMdocAppMySuite
+hello side-effects 6ms
 
 Total 2, Failed 0, Passed 2, Ignored 0, Cancelled 0