Top "Scalatest" questions

The Scala testing framework

ScalaTest in sbt: is there a way to run a single test without tags?

I know that a single test can be ran by running, in sbt, testOnly *class -- -n Tag Is there …

scala testing sbt scalatest
How to do an instanceof check with Scala(Test)

I'm trying to incorporate ScalaTest into my Java project; replacing all JUnit tests with ScalaTests. At one point, I want …

java scala junit scalatest
java.lang.NoClassDefFoundError: scala/Product$class

I am new to scala and I am trying out few sample codes for testing. However I am facing some …

scala scalatest
Doing something before or after all Scalatest tests

I have a suite of scalatest tests that test different endpoints of a RESTful API. I really want them separated …

scala scalatest
ScalaTest: Assert exceptions in failed futures (non-blocking)

import org.scalatest.{ FlatSpec, Matchers, ParallelTestExecution } import org.scalatest.concurrent.ScalaFutures import org.apache.thrift.TApplicationException class Test extends FlatSpec …

scala scalatest
What’s the difference between ScalaTest and Scala Specs unit test frameworks?

Both are BDD (Behavior Driven Development) capable unit test frameworks for Scala written in Scala. And Specs is built upon …

unit-testing scala comparison scalatest
How can a private class method be tested in Scala?

I have a companion object with a private method, like so: package com.example.people class Person(val age: Int) …

scala testing scalatest
Comparing collection contents with ScalaTest

I'm trying to unit-test some Scala that is very collection-heavy. These collections are returned as Iterable[T], so I am …

unit-testing scala scalatest
How do I run a scala ScalaTest in IntelliJ idea?

I'm trying to run a scala flatspec test within Intellij IDEA (latest community build, with latest Scala plugin), but I …

unit-testing scala intellij-idea scalatest
How to mock a function within Scala object using Mockito?

I am really new to Scala. I tried to mock a simple Scala function using Mockito, but I get the …

scala mockito scalatest