score:1
i think you are missing:
import mainfolder.dictionary._
this should load all the functions in the dictionary.scala
also i am not sure if the naming matters but generally the folder structure is:
src -> main
src -> test
score:1
there are three possible solutions which you could try in intellij
right click on the test folder and select '
mark directory as
' and in that 'test sources root
'. this is the most common thing that happens in case of test case not found.also you could try cleaning and compiling your code again. try command
sbt clean compile
even if this does not work, just try once to run the test cases from command line by
sbt test
. this will help us figure out if it is an intellij indexing issue. if the test cases run from command line, then it might be an indexing issue in intellij and you can right click on your project andrebuild project.
Source: stackoverflow.com
Related Query
- Test Class Not Found when Unit Testing on Scala
- Scala class not found on classpath when specifying jar in classpath
- Error not found for object and value in Scala Unit Testing
- Error when running Scala project - class scala.deprecatedInheritance in compiler mirror not found
- package scala object is not found when two jars are in class path
- java.lang.NoClassDefFoundError: Could not initialize class when launching spark job via spark-submit in scala code
- java.lang.RuntimeException: There is no started application error, when testing a class from scala worksheet
- Android/Scala project in IntelliJ 14 compiles, but crashes when launched not finding Scala class
- Misterious `classMethod` test in Gradle Scala unit testing with JUnit 4
- Scala deserialization: class not found
- Spark Scala getting class not found scala.Any
- Scala IDE Error: Main method not found in class 'hello'
- Why when I unit test do I get coverage points with `final lazy val` but not `final val`?
- Future's .recover not getting called when Exception is thrown in Mockito unit test
- Scala Main Class not found in Eclipse ide
- Testing a utility function by writing a unit test in apache spark scala
- Why are implicit variables not initialized in Scala when called from unit test?
- sbt 0.13.1 multi-project module not found when I change the sbt default scala library to scala 2.11.2
- Scala sbt jar allows import when class path is passed on command line, but not in REPL
- Why is my Scala class not visible to its matching test class?
- Write an Arbitrary Value Not Found in a Case Class Using Play's (2.2) Scala JSON Combinators
- Playframework, scala case class and property not found
- Equality of Scala case class does not work in junit assertEquals when it contains an inner Array
- Could not find implicit in Scala Tagless Final, Implicit, unit test
- scala - package not found when running from command line
- Value not found error when trying to use type aliasing for Set in scala
- EMR always gives me Class Not Found for Scala app
- How to call this Scala function when "error: Unit does not take parameters"
- scala - unit test - How to mock a class method inside a class
- Class not found when applying udf in Apache Zeppelin
More Query from same tag
- Spark - Getting Type mismatch when assigning a string label to null values
- ScalaTest own matcher, use of word not
- How to Provide Specialized Implementations of Generic Methods in Scala?
- Implement generics in trait and method
- IntelliJ IDEA Scala - reformat file: put case classes at the beginning
- Hide a Variable in Scala source code
- sparkSession throwing Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/Maps
- top level naming in chisel3
- Akka scheduler stops on exception; is it expected?
- How are co- and contra-variance used in designing business applications?
- Scala Swing image
- GroupBy and transform a map based on another map in Scala
- Get images from other website
- How to compose monadic functions/methods of type Function1 via 'andThen' in Scala?
- Why are messages received by an actor unordered?
- When scala.concurrent.Future's execution starts?
- "java.lang.IllegalAccessError" while reading multiline json file in Spark2.0
- how to convert date to yy-mm-dd in scala
- Is it possible for a structure made of immutable types to have a cycle?
- Filtering values that are not in a list using expr and filter
- Scala: How to define "generic" function parameters?
- Weird type inference in scala
- Apache Flink, get last event in the window
- What does "double right-arrow Type" with no LHS mean in function argument
- How to write the function isCaseObject in scala?
- How to configure Slick 3.0.0 for Postgres DB (either with Hikari or without) Typesafe Play conf
- Is it possible to pass multiple type parameters to implicitly as in implicitly[Monoid[A[B]].mappend?
- Script uses same name everytime for multiple requests instead of using different name per request
- Scala-meta for instrumentation
- call-by-name and call-by-value with lazy val