• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Where exactly does IntelliJ install JUnit?

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I typed @Test, then I used the suggestion to "Add JUnit 5.* to classpath".

However, I don't see it in the modules or dependencies under project structure. The only place I see it is under "External Libraries".

What does it mean exactly for Junit 5 to be under external libraries?

Saloon Keeper
Posts: 23409
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It means that the JUnit libraries are findable by the project, but not part of the project.

You need to be able to find the JUnit libraries when you run jUnit tests, but you should not be bundling jUnit or your test classes into your production build, so both test source and test libraries should be located outside the main project build tree. For example, in Maven builds, production code goes under /src/main/java, test code goes under /src/test/java.

The other characteristic of external libraries is that since they aren't made part of the project source, you can share the same copy with multiple projects instead of having a distinct copy of the library for each project using it.
You guys haven't done this much, have ya? I suggest you study this tiny ad:
create a simple IDEA theme and earn!
    Bookmark Topic Watch Topic
  • New Topic