Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • main - here are our source codes, with working functionalities →  SourceCodeClass.java 

  • test - here are test classes, that check whether source code is working properly. This is where our JUnit5 is used → TestClass.java 

Running tests

From shell

Note

Remember to install Maven & Java 8!

...

Panel

After we have set up the code for the testing, we can run the tests and find out if the tested methods are working correctly.

  • To run an individual test, click Icons run configurations test state runImage Removed in the gutter and select Run.

Image Removed

  • To run all tests in a test class, click Icons run configurations test state run against the test class declaration and select Run.
  • To run an individual test, click Icons run configurations test state runImage Added in the gutter and select Run.




You can view test results in the Run tool tool window at the bottom of IDE.