tkawachi / sbt-doctest

Doctest for scala
MIT License
182 stars 28 forks source link

Expectations are executed twice in Specs2 #466

Open kneisslm opened 3 months ago

kneisslm commented 3 months ago

Example:

In the scripted test the method of the test suite

  /**
   * scala> Main.square(4)
   * res0: Int = 16
   */
  private[sbt_doctest] def square(x: Int) = x * x

contains only a single test but is executed twice and console shows this; we see two lines

…
[info] [info] + example at line 67: Main.square(4)
[info] [info] + example at line 67: Main.square(4)
…
kneisslm commented 3 months ago

This is due to a mistake in the generated Specs2 code. I have a pull request in preparation to fix it.

kneisslm commented 2 weeks ago

Bump. Is this project still active?