I'm trying to inventory all the tests in a Scala project and I'd prefer to not have to do this manually (there are hundreds) or write a script (I'd ho ...
I'm trying to inventory all the tests in a Scala project and I'd prefer to not have to do this manually (there are hundreds) or write a script (I'd ho ...
One can use have to check if property equals to a value. Is there some way to check the property not for equality, but to check if it satisfies a mat ...
I have a test that is non-functional, so I do not want it to affect the coverage report. Other than putting it in a separate project, is there a way t ...
I’m trying to write a simple test but not sure why it’s not working here is my code. Not sure what I am missing. It seems like it never invoke to trig ...
I just set up a new scala project with sbt in IntelliJ, and wrote the following basic class: Person.scala: Main.scala: PersonTest.scala: Whe ...
I am writing unit test to verify the expectation that whether custom region is passed correctly. The #getCustomSettings is a private method which t ...
I wrote the following test: For function: However, I get missing parameter type for expanded function when pass _ <= 2 to dropWhile(l, _ < ...
What's missing in order to get this simple scalatest working in databricks? (mostly as per their userguide) I have cluster, into which I've upload ...
We have created a project which is an end to end system test harness written in Scala The harness code and testcases both live inside of Main When w ...
I am working on a Scala project that use maven POM.xml file to build. the build failed after adding test file that import "org.scalatest.FunSuite" or ...
I write some tests and to get absolute path from relative path i use this function and then i do: i get: As you can see, instead of =, I get ...
I have a simple companion Object that is creating a connection pool that should be globally static. I then use that in a variety of classes like... ...
I'm creating a val into my build.sbt, made of a random string, to be used in the Setup and Cleanup methods for scalatest, like this: val foo = Random ...
I have a function with return type RIO as follows: I am having trouble writing a unit test for this function, is there any way to check if the retu ...
I have a simple test case which is using TestActorRef and eventually to verify a timeout call of a method. Here is details of 3 file sources: TestRes ...
I have a Spark application that should be tested in both local mode & local-cluster mode, using scalatest. The local-cluster mode is submitted us ...
I have a scala project configured with maven surefire plugin: When I run all the tests and generates the test report, I found the following informa ...
I'm learnning how to use ScalaTest. now I'm using scala 2.11.8, in JetBrains IDEA. Fisrt I wrote a simple trait traitA. then I wrote a test file ...
Given a scala function that can produces Failures: How can scalatest matchers be used to test the Exception type? I'm looking for something of the ...
I would like to use full paths in ScalaTest reporter. The value LineInFile.filePathname tells me I should: Please set the environment variable SCA ...