Win a copy of Functional Design and Architecture this week in the Functional programming forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Where exactly does IntelliJ install JUnit?

 
Greenhorn
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?

Thanks!
 
Saloon Keeper
Posts: 24283
167
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.
 
What's that smell? I think this tiny ad may have stepped in something.
create a simple IDEA theme and earn!
https://plugins.jetbrains.com/contest/intellij-themes/2019
reply
    Bookmark Topic Watch Topic
  • New Topic