How to get excellent result from specs + scalacheck with maven?

When I run Specs + Scalacheck tests with IDEA, I get a nice output:

  Specification "CoreSpec"
    The core grammar should
    + parse any encoded string
    + fail to parse an empty encoded string
    + parse an expected empty string
    + fail on a non-empty string when expecting an empty string
    + parse well-formed coordinates

So that my tests run with maven, I have the usual:

class CoreSpecTest extends JUnit4(CoreSpec)

... but then the output is not very satisfying:

Running CoreSpecTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.782 sec

Results :

Tests run: 5, Failures: 0, Errors: 0, Skipped: 0

Is there any way to get a nice result in this case?

Thank...

+3
source share
1 answer

I have a workaround for my project:

fe I have specifications

The SomeSpec class extends HtmlSpecification with Textile {....}

class Some2Spec extends HtmlSpecification with Textile {....}

Also, I have a Junit test like this

@Test class AppTest {

@Test
def testOk = {}

@Test
def printSpecs  {
    (new SomeSpec).reportSpecs
    (new Some2Spec).reportSpecs
}   

}

, , , maven sbt.

+1

Source: https://habr.com/ru/post/1779142/


All Articles