scalatest
Help with ScalaCheck
I\'d like to use ScalaTest\'s Checkers trait to use ScalaCheck from ScalaTest cases. A simple case I\'m playing with is:[详细]
2023-04-08 22:33 分类:问答Comparing collection contents with ScalaTest
I\'m trying to unit-tes开发者_StackOverflow社区t some Scala that is very collection-heavy. These collections are returned as Iterable[T], so I am interested in the contents of the collection, even if[详细]
2023-04-05 17:01 分类:问答Why does adding a "pending" break my Scala test?
The commented line below breaks my testing import org.scalatest.WordSpec class LSESuite extends WordSpec {[详细]
2023-04-04 11:30 分类:问答Scalatest - how to test println
Is there something in Scalatest that will all开发者_开发技巧ow me to test the output to the standard out via a println statement?[详细]
2023-03-31 11:36 分类:问答How can I get complete stacktraces for exceptions thrown in tests when using sbt and testng?
The stacktraces are truncated - e.g. th开发者_如何学Goey end with [info]... Using last or changing traceLevel doesn\'t help - it simply prints the complete stacktrace of the sbt wrapper.[详细]
2023-03-31 10:11 分类:问答Does Scalatest have any support for assumptions?
As per the title, I\'m wondering if it\'s possible to provide \"assumptions\" to Scalatest when defining a particular test case.Assumptions in this context would be preconditions for a test, such that[详细]
2023-03-28 23:18 分类:问答Using the "should NOT produce [exception]" syntax in ScalaTest
I\'am toying with Specs2 and ScalaTest for BDD in Scala. I\'ve written expectations in Specs2 when I am asserting that a given exception should not be thrown.[详细]
2023-03-27 05:55 分类:问答is there a scalaTest mechanism similar to TestNg dependsOnMethods annotation
Can I have dependencies between scalaTest specs such that i开发者_StackOverflow社区f a test fails, all tests dependent on it are skipped?I didn\'t add that feature of TestNG because I didn\'t at the t[详细]
2023-03-27 04:59 分类:问答Using a HavePropertyMatcher for collection elements in ScalaTest?
I\'ve been using ScalaTest\'s FeatureSpec for a couple of days now and I\'m trying to understand if it\'s possible to define the following spec using the built-in matchers (and if not, how I can write[详细]
2023-03-26 19:26 分类:问答@Test method in Scala trait not found
does somebody know why @Test annotated methods which are inherited from a Scala trait are not found by the JUnit 4 test run开发者_JAVA百科ner? It gives me \"No JUnit tests found\".[详细]
2023-03-26 14:06 分类:问答