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
- Scala Spark : Convert struct columns type to decimal type
- Issue with using Macros in SBT
- Getting incompatible jackson version while reading a file in spark scala
- Why does map on textFile cause Compilation failed?
- Spark Send DataFrame as body of HTTP Post request
- Akka Pattern - Actor tree, reply to original source
- Generating a Scala list of random size
- From seq to _* in Scala
- Why a Trait extending Abstract Class with non-empty constructor compiles?
- spark: how to groupby a dataframe and to transform each group with
- Sorting keys in an RDD
- Debugging a software verifier written in Scala working as plugin of sbt
- SBT artifact in custom task and scope ignored?
- How could I implement an early return from outside the body of a method in Scala?
- How do I render 3d objects with 2d GUI (nifty-gui) correctly?
- How can I combine two array in this way
- Type inheritance misunderstanding in Request Response messaging design with Scala
- postgres: sql error while using string interpolation (scala + scalikejdbc)
- Play 2.2.2 (Scala) Json parse as List[Class] issue
- Allocation of Function Literals in Scala
- Spark scala cannot find file type
- Ideal datastore for User Activity Data?
- How to add a set to a list of Sets in Scala
- Scalaz Validation, validate inner value
- scala chained conditional mapping - `ifDefined` method
- Reading JSON object with JSONArray inside to RDD using Scala and without using Dataframe
- How to restrict method parameter to subclass type in Scala
- Scala: function/method application and tuples
- Difference between a function and a method in terms of Functional programming
- Error Connecting to Hive with keytab kerberos authentication