Top "Scalatest" questions

The Scala testing framework

What is the === (triple-equals) operator in Scala Koans?

I started working my way through the Scala Koans, which is organized around a suite of unit tests with blanks …

scala scalatest scala-2.9
Mockito matchers, scala value class and NullPointerException

I'm using mockito with scalatest. I have following problem when using matcher with value class. import org.scalatest.FlatSpec import …

scala mockito scalatest
scalatest : object scalatest is not a member of package org

EDIT : it works if the file is in src/test/scala/tests/ but not in src/main/scala/mypackage/ Why ? …

scala intellij-idea sbt scalatest
How to disable test suite in ScalaTest

How to disable a test suite, i.e. all tests inside class extending FunSpec? The only solution I'd found is …

scala testing scalatest
Scalatest - how to test println

Is there something in Scalatest that will allow me to test the output to the standard out via a println …

scala scalatest
Getting started with Scala, Scalatest, and Maven

I created a new scala project with the following: mvn org.apache.maven.plugins:maven-archetype-plugin:2.2:generate -DarchetypeGroupId=org.scala-tools.archetypes …

unit-testing scala maven scalatest scala-2.9
How to populate java.util.HashMap on the fly from Scala code?

I am unit testing java code from ScalaTest and would like to populate a java.util.HashMap within the same …

java scala hashmap scalatest
Can't run Scalatest with Gradle

task scalaTest(dependsOn: testClasses) << { description = 'Runs Scalatest suite' ant.taskdef(name: 'scalatest', classname: 'org.scalatest.tools.ScalaTestAntTask', classpath: …

scala gradle scalatest
Mock a Spark RDD in the unit tests

Is it possible to mock a RDD without using sparkContext? I want to unit test the following utility function: def …

scala unit-testing mocking apache-spark scalatest
How to show custom failure messages in ScalaTest?

Does anyone know how to show a custom failure message in ScalaTest? For example: NumberOfElements() should equal (5) Shows the following …

scala scalatest matcher