In this lesson, we're going to be writing a test for our Get Projects use case class to ensure that it remains functional as intended.
When I try to run the tests, I'm getting the following error in console:
Process finished with exit code 1
Class not found: "es.jasalvador.domain.interactor.browse.GetProjectsTest"Empty test suite.
The same is happening downloading the sample code attatched to the lesson.
Maybe is Android Studio configuration?
Just tried ./gradlew :domain:test in command line and ran unit tests in Android Studio right after. Still the same problem. I can run unit tests in 'app' module but not able to run them in 'domain' module.
yup cloning your project produces the same error (empty test suite)
I'll go research on how to run unit tests on domain layer!
Hi, Joe. I'm facing the same issue. If I enter this comand "C:\Users\Dmitry\StudioProjects\CasterCleanCourse> gradlew :domain:test" on Windows machine I recieve BUILD SUCCESSFUL message in console. But in Android Studio I have an error - Class not found: "test.java.GetProjectsTest"Empty test suite. Even after clean and rebuild. Android Studio version 3.1.3.
Please advise how to fix.
I found the problem the problem with Gradle file
the top level of the file was :
apply plugin: 'java-library'
I replace it with
apply plugin: 'kotlin'