Closed brandoncjh closed 4 years ago
After importing the project, are you able to run the gradlew test
successfully? That task runs the default JUnit test as well.
Yes, it says build successful.
That means you can use that method to run your JUnit tests if other methods don't work.
In the meantime, try clicking the 'refresh' icon in the Gradle windows to see if that helps with the other problem.
After uninstalling and reinstalling IntelliJ, it seems I can run the tests now. Very weird:
Thank you for the help Prof!
I am having issues with trying to build and run the JUnit tests. For example, using the default tests provided, the test classes encounter an error when trying to build the module, IntelliJ is unable to import the Assertions class: After adding the recommended library to the classpath: I can build the module, but trying to run all tests it gives this error: Is there any way to rectify this? Have tried deleting and reimporting the project but it makes no difference.