These are chat archives for etorreborre/specs2

3rd
Aug 2017
Matthew de Detrich
@mdedetrich
Aug 03 2017 14:58
Does anyone know if there is an easy way to add a delay between tests (when doing Future/Task based tests)?
Something like sequential but it also adds a delay?
Eric Torreborre
@etorreborre
Aug 03 2017 15:01
@mdedetrich you could use sequential and a special AfterEach trait which just adds a `Thread.sleep
Matthew de Detrich
@mdedetrich
Aug 03 2017 15:01
Ah yes, that can work
Matthew de Detrich
@mdedetrich
Aug 03 2017 15:20
i.e. getting the currently executing test fragment name?
I am thinking of something like pp, but I also want to know the currrent test fragment that I am running
Eric Torreborre
@etorreborre
Aug 03 2017 15:46
@mdedetrich this works
class TestSpec extends org.specs2.mutable.Specification {

  "test" >> { name: String =>

    "this is a message".pp(_ +"_"+name)
    ok

  }

}