Top "Specs2" questions

Executable software specification tool that specifies behaviour both at the class and application level using Scala.

Execute code before and after specification

I have simple specification with several cases in it: class MySpec extends Specification { "Something" should { "case 1" in { ... } "case 2" in { ... } } } Now …

scala testing specs2
Scalatest or specs2 with multiple test cases

In TestNg and Java, we can run multiple test cases using DataProvider, and this runs as separate tests, meaning execution …

scala scalatest specs2
Parallel execution of tests

I've noticed that SBT is running my specs2 tests in parallel. This seems good, except one of my tests involves …

scala sbt specs2
How do you run only a single Spec2 specification with SBT?

If you have 2 tests defined in your SBT project: class Spec1 extends Specification { def is = "Tests for specification 1" ^ p ^ "Test …

scala specs2
How can i skip a test in specs2 without matchers?

I am trying to test some db dependent stuff with specs2 in scala. The goal is to test for "db …

scala skip specs2
How to specify different application.conf for specs2 tests?

I have an IntelliJ IDEA project in Scala and started adding org.specs2 tests. I am having trouble finding out …

scala intellij-idea specs2
Verify that a method was called using Mockito without specifying arguments

Using Mockito, is it possible to verify that a function was called/not called using a spy or a mock, …

scala mockito specs2