Skip to main content
0 votes
0 answers
48 views

I really want to see full stack traces instead of the default cut-off ones when using ScalaTest, as explained here. Yet I'm using mill 0.11.7. Presumably you can specify ScalaTest arguments by passing ...
Amaterasu's user avatar
  • 396
0 votes
0 answers
38 views

Original Scala Code, the method in the XYZ class and OauthProvider: Here we are trying to test a static method. At first, you may see the original code and then you can see that how I have written the ...
Debarshi Bhattacharyya's user avatar
0 votes
1 answer
93 views

I have a small app consisting of a bunch of CRUD APIs towards a Postgres DB. I have a bunch of DAOs and I have been using the doobie check functionality to type check my SQL statements and that has ...
Björn Pedersen's user avatar
0 votes
2 answers
147 views

First, I need this async test to get compiled. Second, some assertions are made conditionally, depending on whether options are defined, while others are not. Third, I'd like the test to fail fast, ...
danissimo's user avatar
  • 442
1 vote
1 answer
64 views

I'm writing integration tests of skunk code against postgres using scala-test-containers, munit and munit-cats-effect, using Mill and Scala 3. I'm new to Cats Effect. The setup I'm working to achieve ...
Jake's user avatar
  • 3,090
0 votes
0 answers
72 views

I have some basic tests that i am executing with scala cli. When i run the tests scala-cli test core where core is the name of the directory where the tests are. the test run is finished but the ...
Eric's user avatar
  • 1,023
0 votes
1 answer
128 views

I have a spark scala application, it uses the below versions. Dependencies: org.apache.spark:spark-core_2.12:jar:3.3.2 org.apache.spark:spark-hive_2.12:jar:3.3.2 org.apache.hive:hive-common:jar:2.3.9 ...
saravana ir's user avatar
2 votes
0 answers
82 views

In my test: package com.megafarad.play.kafka.module import com.google.inject.name.Names import com.megafarad.play.kafka.services.KafkaProducerService import io.github.embeddedkafka.EmbeddedKafka ...
Chris Carrington's user avatar
0 votes
1 answer
126 views

Here is the code being tested: import concurrent.{ExecutionContext, Future} trait Backend { def verifyUser(): Future[Unit] def accounts(): Future[String] } class Service(backend: Backend) { ...
danissimo's user avatar
  • 442
0 votes
1 answer
54 views

I use scala-cli and scalatest-funsuite. Here is the snippet //> using scala 3.3.3 //> using test.dep org.scalatest::scalatest-funsuite:3.2.19 //> using test.dep org.scalatestplus::scalacheck-...
Dexter's user avatar
  • 1,471
0 votes
0 answers
107 views

I have a base class that has a protected method called "validateOptPwd". This gets inherited in a test and then called via PrivateMethodTester. val validateOptPwdMethod: PrivateMethod[Future[...
EAndrew's user avatar
  • 21
0 votes
0 answers
59 views

I have started working in Scala very recently. I have below code in the main method that I'll need to mock for writing test cases, object SacSAAgentSoftwareLogParser extends SparkSessionCreation { ...
Pramit Pakhira's user avatar
1 vote
0 answers
51 views

I am trying to build a SBT project which will encompass both unit and end-to-end tests, and will support tests being written in both Scala (extending standard Scalatest suites, e.g. AnyFlatSpec) and ...
MSmedberg's user avatar
  • 511
1 vote
1 answer
72 views

I have construct like this in my Scala tests: class ExpressionsTest extends AnyFunSpec { describe("simple literals") { describe("valid") { it("123") { ...
GreyCat's user avatar
  • 17.3k
2 votes
1 answer
273 views

I am using AnyFlatSpec for my tests: class FooTest extends AnyFlatSpec with Matchers { behavior of "The Foo" it should "do bar" in { ... } it should "do moo" in { ...
rabejens's user avatar
  • 8,252

15 30 50 per page
1
2 3 4 5
108