testz icon indicating copy to clipboard operation
testz copied to clipboard

"sbt tut" fail

Open xuwei-k opened this issue 5 years ago • 1 comments

due to https://github.com/scalaz/testz/pull/28

https://travis-ci.org/scalaz/testz/builds/447113228

[tut] *** Error reported at /home/travis/build/scalaz/testz/docs/src/main/tut/docs/01-first-example.md:15
<console>:12: error: object Harness is not a member of package testz
       import testz.{Harness, PureHarness, assert}
              ^
[tut] *** Error reported at /home/travis/build/scalaz/testz/docs/src/main/tut/docs/01-first-example.md:33
<console>:13: error: not found: type Harness
         def tests[T](harness: Harness[T]): T = {
                               ^
<console>:15: error: not found: value section
           section(
           ^
<console>:16: error: not found: value test
             test("say 1 + 1 == 2") { () =>
             ^
<console>:19: error: not found: value test
             test("say 2 * 2 == 4") { () =>
             ^
[tut] compiling: /home/travis/build/scalaz/testz/docs/src/main/tut/docs/02-core.md
[tut] compiling: /home/travis/build/scalaz/testz/docs/src/main/tut/docs/03-resource.md
[tut] *** Error reported at /home/travis/build/scalaz/testz/docs/src/main/tut/docs/03-resource.md:78
<console>:16: error: not found: type ResourceHarness
         def tests[T[_]](harness: ResourceHarness[T]): T[Unit] = {
                                  ^
<console>:18: error: not found: value section
           section(
           ^
<console>:19: error: not found: value allocate
             allocate(() => List(1, 2, 3, 4))(
             ^
<console>:20: error: not found: value test
               test("the list should be ascending") {
               ^
<console>:22: error: value sorted is not a member of Any
                   assert(list == list.sorted)
                                       ^
<console>:25: error: not found: value test
             test("doesn't see the list, it's not referenced by the time the test executes") {
             ^
[tut] compiling: /home/travis/build/scalaz/testz/docs/src/main/tut/docs/04-stdlib.md
[tut] *** Error reported at /home/travis/build/scalaz/testz/docs/src/main/tut/docs/04-stdlib.md:81
<console>:21: error: not found: type Harness
         ): Harness[Uses[Unit]] =
            ^
<console>:22: error: not found: value ResourceHarness
           ResourceHarness.toHarness(makeFromPrinterR(output))
           ^
<console>:26: error: not found: type ResourceHarness
         ): ResourceHarness[Uses] =
            ^
<console>:27: error: not found: type ResourceHarness
           new ResourceHarness[Uses] {
               ^
<console>:28: warning: private method test in <$anon: <error>> is never used
             override def test[R]
                          ^
<console>:43: warning: private method namedSection in <$anon: <error>> is never used
             override def namedSection[R]
                          ^
<console>:54: warning: private method section in <$anon: <error>> is never used
             override def section[R]
                          ^
<console>:63: warning: private method allocate in <$anon: <error>> is never used
             override def allocate[R, I]
                          ^
<console>:20: warning: parameter value output in method makeFromPrinter is never used
           output: (Result, List[String]) => Unit
           ^

xuwei-k avatar Apr 22 '19 07:04 xuwei-k

https://github.com/scalaz/testz/commit/7beaad5c54ba7b142e7e100392d70e17255f0ac9

xuwei-k avatar Jun 15 '19 23:06 xuwei-k