diff --git a/features/discipline.html b/features/discipline.html index 72ebf63c..177cbe40 100644 --- a/features/discipline.html +++ b/features/discipline.html @@ -143,12 +143,12 @@

SBT

-
libraryDependencies +=  "com.disneystreaming" %% "weaver-discipline" % "0.0-196c6ce-SNAPSHOT" % Test
+
libraryDependencies +=  "com.disneystreaming" %% "weaver-discipline" % "0.0-ee57b39-SNAPSHOT" % Test

Mill

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

 repl.MdocSessionMdocAppDisciplineTests
-Int: eq.antisymmetry eq 29ms
-Int: eq.reflexivity eq 7ms
-Int: eq.symmetry eq 10ms
-Int: eq.transitivity eq 11ms
-Boolean: eq.antisymmetry eq 7ms
-Boolean: eq.reflexivity eq 2ms
+Int: eq.antisymmetry eq 28ms
+Int: eq.reflexivity eq 6ms
+Int: eq.symmetry eq 9ms
+Int: eq.transitivity eq 9ms
+Boolean: eq.antisymmetry eq 6ms
+Boolean: eq.reflexivity eq 1ms
 Boolean: eq.symmetry eq 2ms
-Boolean: eq.transitivity eq 3ms
+Boolean: eq.transitivity eq 2ms
 
 Total 8, Failed 0, Passed 8, Ignored 0, Cancelled 0
 
diff --git a/features/expectations.html b/features/expectations.html index 0bf11adf..70b528c0 100644 --- a/features/expectations.html +++ b/features/expectations.html @@ -335,37 +335,37 @@

Example suite report

 repl.MdocSessionMdocAppExpectationsSuite
-Simple expectations (success) 25ms
-And/Or composition (success) 27ms
+Simple expectations (success) 22ms
+And/Or composition (success) 25ms
 Varargs composition (success) 0ms
-Working with collections (success) 26ms
-Strict equality (success) 14ms
-Relaxed equality comparison (success) 1ms
-Simple expectations (failure) 35ms
-And/Or composition (failure) 34ms
-Varargs composition (failure) 10ms
-Working with collections (failure 1) 12ms
-Working with collections (failure 2) 5ms
-Strict equality (failure 1) 13ms
-Strict equality (failure 2) 3ms
-Strict equality (failure 3) 0ms
-Relaxed equality comparison (failure) 2ms
+Working with collections (success) 12ms
+Strict equality (success) 10ms
+Relaxed equality comparison (success) 2ms
+Simple expectations (failure) 36ms
+And/Or composition (failure) 40ms
+Varargs composition (failure) 9ms
+Working with collections (failure 1) 20ms
+Working with collections (failure 2) 13ms
+Strict equality (failure 1) 4ms
+Strict equality (failure 2) 6ms
+Strict equality (failure 3) 2ms
+Relaxed equality comparison (failure) 3ms
 Non macro-based expectations 0ms
-Failing fast expectations 14ms
+Failing fast expectations 12ms
 
 *************FAILURES*************
 repl.MdocSessionMdocAppExpectationsSuite
-Simple expectations (failure) 35ms
  assertion failed (expectations.md:33)

  expect(A.B.C.test(z) % 7 == 0)
               |    |  |   |
               20   15 6   false
-And/Or composition (failure) 34ms
 [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) 10ms
  assertion failed (expectations.md:52)

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

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

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

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

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

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

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

  expect(A.B.C.test(z) % 7 == 0)
               |    |  |   |
               20   15 6   false
+And/Or composition (failure) 40ms
 [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) 9ms
  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) 13ms
  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) 6ms
  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) 3ms
  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 14ms
  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 cc673b93..04aec595 100644 --- a/features/logging.html +++ b/features/logging.html @@ -162,12 +162,12 @@

Logging information

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

  } yield expect(2 + 2 == 5)


    [INFO] 02:43:27 [logging.md:19] oopsie daisy +Just logging some stuff 8ms
  assertion failed (logging.md:20)

  } yield expect(2 + 2 == 5)


    [INFO] 09:13:50 [logging.md:19] oopsie daisy Total 2, Failed 1, Passed 1, Ignored 0, Cancelled 0
diff --git a/features/scalacheck.html b/features/scalacheck.html index f2e02f8e..50336e32 100644 --- a/features/scalacheck.html +++ b/features/scalacheck.html @@ -143,12 +143,12 @@

SBT

-
libraryDependencies +=  "com.disneystreaming" %% "weaver-scalacheck" % "0.0-196c6ce-SNAPSHOT" % Test
+
libraryDependencies +=  "com.disneystreaming" %% "weaver-scalacheck" % "0.0-ee57b39-SNAPSHOT" % Test

Mill

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

 repl.MdocSessionMdocAppForallExamples
-Single Gen form 118ms
-Multiple Gen form 116ms
-Arbitrary form 114ms
-Failure example 34ms
+Single Gen form 139ms
+Multiple Gen form 118ms
+Arbitrary form 101ms
+Failure example 30ms
 
 *************FAILURES*************
 repl.MdocSessionMdocAppForallExamples
-Failure example 34ms
 [0] Property test failed on try 1 with seed Seed.fromBase64("3i9rFC0l0gofGtJuca2Zwmm1qL1nvatuFxF5tE7T9LO=") and input (2147483647,2051447565) (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   false
 [1]        |  | 2051447565
 [1]        |  -2147483648
 [1]        2147483647
+Failure example 30ms
 [0] Property test failed on try 1 with seed Seed.fromBase64("n3NM-x12EZ4jfXyLHus8XpYit3yNUOKU3UkGgZ4RpnP=") and input (1769075747,336610500) (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]        |  | 336610500
 [1]        |  1769075747
 [1]        1769075747
Total 4, Failed 1, Passed 3, Ignored 0, Cancelled 0
diff --git a/features/tagging.html b/features/tagging.html index 1e95babb..e527fd36 100644 --- a/features/tagging.html +++ b/features/tagging.html @@ -161,13 +161,13 @@

Tagging

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

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

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

  } yield expect(x == y)
                 | |  |
                 1 |  2
                   false
+Another on CI 14ms
  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/features/tracing_failures.html b/features/tracing_failures.html index c235ac15..b8b42bcf 100644 --- a/features/tracing_failures.html +++ b/features/tracing_failures.html @@ -154,11 +154,11 @@

Installation

SBT (1.9.0+)

Newer versions of SBT have weaver automatically integrated.

-
libraryDependencies +=  "com.disneystreaming" %% "weaver-cats" % "0.0-196c6ce-SNAPSHOT" % Test
+
libraryDependencies +=  "com.disneystreaming" %% "weaver-cats" % "0.0-ee57b39-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-196c6ce-SNAPSHOT" % Test
+        
libraryDependencies +=  "com.disneystreaming" %% "weaver-cats" % "0.0-ee57b39-SNAPSHOT" % Test
 testFrameworks += new TestFramework("weaver.framework.CatsEffect")

Mill

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

scala-cli

-
//> using lib "com.disneystreaming::weaver-cats:0.0-196c6ce-SNAPSHOT"
+        
//> using lib "com.disneystreaming::weaver-cats:0.0-ee57b39-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 fcbb65b7..3e80e0ac 100644 --- a/samples/multiple_suites_failures.html +++ b/samples/multiple_suites_failures.html @@ -164,14 +164,14 @@

Failures

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

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

  def check(x : String) = expect(x.length > 10)
                                 | |      |
                                 | 10     false
                                 jmIv0wxsrv
+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
                                 VUf1xcvqUs
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 9d9b30e4..52d4f511 100644 --- a/samples/multiple_suites_logging.html +++ b/samples/multiple_suites_logging.html @@ -173,11 +173,11 @@

Logging

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

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


    [INFO]  02:43:31 [multiple_suites_logging.md:38] Starting the test...
        time    -> 1711421011
        purpose -> docs
    [DEBUG] 02:43:31 [multiple_suites_logging.md:40] Generated random string: 3fVXnITVPm +failure should print logs 11ms
  assertion failed (multiple_suites_logging.md:41)

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


    [INFO]  09:13:53 [multiple_suites_logging.md:38] Starting the test...
        time    -> 1712222033
        purpose -> docs
    [DEBUG] 09:13:53 [multiple_suites_logging.md:40] Generated random string: E6F9pgTY4p 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 2041c515..9409eca3 100644 --- a/samples/multiple_suites_success.html +++ b/samples/multiple_suites_success.html @@ -165,7 +165,7 @@

Successes

The report looks like this:

 repl.MdocSessionMdocAppMySuite
-hello side-effects 2ms
+hello side-effects 3ms
 
 repl.MdocSessionMdocAppMyAnotherSuite
 double reversing is identity 2ms