These are chat archives for etorreborre/specs2

31st
Oct 2017
Igal Tabachnik
@hmemcpy
Oct 31 2017 14:29
@etorreborre hey Eric, I'd appreciate another hint :)
Suppose I have:
class MySpec extends SpecWithJunit {
    "Example1" should {
        "do something" in {
            ...
            success
        }
    }

    "Example2" should {
        "do something" in {
            ...
            success
        }
    }
}
how would I pass it to my contraption from yesterday, so I could run Example2::do something ?
Raphael Mäder
@randm-ch
Oct 31 2017 15:59
@etorreborre Yeah I think it's really strange as well. I can't explain it, but then again, I'm not a Scala, Specs2 or Mockito pro, I'm just messing around a bit with it in my free time. If you want to have a look at the project, here you go: https://git.randm.ch/randm/randm.ch
(replying to your message from Oct 27, btw ;) )
Eric Torreborre
@etorreborre
Oct 31 2017 17:18
@hmemcpy there is currently no way to do this unfortunately. This syntax is not impossible to implement but I would need a bit of time to implement it
@randm-ch I’m a bit short on time these days (and sick today, that doesn’t help) :-)
Igal Tabachnik
@hmemcpy
Oct 31 2017 17:25
@etorreborre thanks! I noticed this is also not really supported when running from "plain" scala project in intellij's scala plugin
Anyway, I successfully implemented a test filter for running a single example! Which is great, because that's our biggest painpoint migrating to Bazel :)
Raphael Mäder
@randm-ch
Oct 31 2017 17:38
@etorreborre Sure, I can imagine. Hope you make a quick recovery! I'll let you know if I find out more.