You cannot post messages because only members can post, and you are not currently a member.
Description:
Mailing list for discussing all things ScalaTest, in particular for users of ScalaTest to ask questions and get answers.
|
|
|
ScalaMock 3 Preview Release
|
| |
I've just released a preview of ScalaMock 3. Instead of all that fiddly mucking around with compiler plugins that ScalaMock 2.x required, it now uses macros (thanks, Eugene et al!). It's not yet quite as capable as ScalaMock 2.x (for example, it can't yet mock singleton/companion objects or object creation), but it is functional enough to be useful, I believe. And I've gone far enough to be convinced that macros are going to be a more fruitful long-term approach than continuing down the compiler plugin route.... more »
|
|
Ensuring common pre-work executes first
|
| |
Hello, I have a set of test files that run fine. Now I need to run one block of code, one time, before any of these tests fire. I know how to do pre-work fixtures within any one of the test files but is there a way to do pre-work before any of the tests fire? Thanks for any ideas, Greg
|
|
ScalaTest 1.8 released!
|
| |
Hi All,
Today I released ScalaTest 1.8 final, which includes many enhancements
related to testing concurrent and asynchronous systems, two new "path"
traits that do nested isolation, the ability to specify chosen styles,
and more. Info on how to get it is here:
[link]... more »
|
|
BDD without code execution
|
| |
We've been using FeatureSpec as our form of BDD for quite awhile within my groups, and one of the consistent pains we see is the need to generate the newest requirements even when the tests might be broken. Sure, we can search/replace "scenario" to "ignore" throughout everything, but that's a pain and introduces risk that they get committed to SCM that way. After a... more »
|
|
What on Earth is going on here?
|
| |
With Scala 2.10.0-M3 and ScalaTest 1.8-SNAPSHOT:
...
Why does test1 fail? And why does introducing the temporary variable in test2 make it pass?
--
paul.butcher->msgCount++
Snetterton, Castle Combe, Cadwell Park...
Who says I have a one track mind?
[link]
LinkedIn: [link]... more »
|
|
Reporting errors in a ScalaTest-friendly way
|
| |
I'm in the process of writing ScalaMock 3, which will be based on macros instead of a compiler plugin. One of the things I'd like to do better this time around is to report errors in a more ScalaTest-friendly way. Right now, ScalaMock just does:
...
What should I do instead?
--
paul.butcher->msgCount++... more »
|
|
Isolating an ActorSystem from Akka
|
| |
Hi guys,
I've been trying to isolate Akka's ActorSystem in each test and I'm
hitting some issues - Bill helped me get a fair ways into this but
I've left his path a bit, and I probably need to be put straight
again.
My goal is to create a suite that has no Akka-ness in it, and then
have each test mix in the bits of Akka I'd like to use. The reason... more »
|
|
One or more requested classes are not Suites
|
| |
Seems this is not a Suite ("One or more requested classes are not Suites"). Any idea why? import akka.actor.ActorSystem import org.scalatest.{BeforeAndAfterA ll, WordSpec} import org.scalatest.matchers.MustMat chers import akka.testkit.TestKit class TestTest(implicit system: ActorSystem = ActorSystem()) extends... more »
|
|
ScalaTest for 2.10.0-M2 doesn't work with Scala 2.10.0-M3
|
| |
With this combination: scalaVersion := "2.10.0-M3" libraryDependencies += "org.scalatest" % "scalatest_2.10.0-M2" % "1.8-SNAPSHOT" % "test" my tests compile, but when I run them I get: [error] Could not run test net.tisue.euler.Problem21: java.lang.NoSuchMethodError: scala.Predef$.augmentString(Lj ava/lang/String;)Lscala/collec tion/immutable/StringOps;... more »
|
|
|