Skip to content

Provide dependency management for JUnit Jupiter #10240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

eddumelendez
Copy link
Contributor

No description provided.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 11, 2017
@snicoll
Copy link
Member

snicoll commented Sep 11, 2017

Now that's GA, perhaps we can promote that to spring-boot-dependencies. What do you think @wilkinsona?

@wilkinsona
Copy link
Member

Good idea. Given that we have a sample and that Framework has first-class support for it, providing dependency management feels right to me.

@snicoll
Copy link
Member

snicoll commented Sep 11, 2017

@eddumelendez are you willing to rework the PR?

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Sep 11, 2017
@eddumelendez eddumelendez force-pushed the update_junit_jupiter_ga branch from dedb522 to 2e8c3e1 Compare September 11, 2017 12:35
Spring Framework 5 provides support for JUnit 5. This commit adds
dependency management for JUnit 5 and an upgrade for
spring-boot-sample-junit-jupiter sample.
@eddumelendez eddumelendez force-pushed the update_junit_jupiter_ga branch from 2e8c3e1 to c6756a8 Compare September 11, 2017 12:37
@eddumelendez
Copy link
Contributor Author

@snicoll Sure! it's done 😃

@eddumelendez eddumelendez changed the title Upgrade JUnit Jupiter sample to JUnit 5 GA Provide dependency management for JUnit Jupiter Sep 11, 2017
@snicoll snicoll added type: dependency-upgrade A dependency upgrade and removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Sep 11, 2017
@snicoll snicoll self-assigned this Sep 11, 2017
@snicoll snicoll added this to the 2.0.0.M4 milestone Sep 11, 2017
snicoll pushed a commit that referenced this pull request Sep 11, 2017
Spring Framework 5 provides support for JUnit 5. This commit adds
dependency management for JUnit 5 and an upgrade for
spring-boot-sample-junit-jupiter sample.

See gh-10240
@snicoll snicoll closed this in 1dc08fd Sep 11, 2017
snicoll added a commit that referenced this pull request Sep 11, 2017
* pr/10240:
  Polish "Provide dependency management for JUnit Jupiter"
  Provide dependency management for JUnit Jupiter
@snicoll snicoll mentioned this pull request Sep 11, 2017
@kazuki43zoo
Copy link
Contributor

kazuki43zoo commented Sep 11, 2017

Hi @snicoll and @wilkinsona,

I have one question.
Have you plan to change the default dependency artifact to the Junit Jupiter(JUnit 5 based) instead of the Junit 4 on the spring-boot-starter-test?

@philwebb
Copy link
Member

@kazuki43zoo Most probably not in Spring Boot 2.0.

@snicoll
Copy link
Member

snicoll commented Sep 12, 2017

@kazuki43zoo please watch #6402 scratch that, this looks a duplicate :)

@kazuki43zoo
Copy link
Contributor

@philwebb @snicoll

Thanks for your reply! I will watch #6402 .

@sbrannen
Copy link
Member

Why would you include dependency management for the Launcher API if you're only focusing on the JUnit Jupiter API?

Most users won't need the Launcher API: it's typically only needed by build tools (e.g., Gradle and Maven) and IDEs.

I'm not saying you should necessarily remove the Launcher, but users will likely need the junit-vintage-engine in order to be able to run existing JUnit 4 and JUnit 3 tests alongside JUnit Jupiter tests (or alongside any other testing framework running on the JUnit Platform).

Plus, why not include a dependency on junit-jupiter-params as well (even if it's technically experimental)?

Food for thought...

- Sam

@wilkinsona
Copy link
Member

wilkinsona commented Sep 12, 2017

Thanks, @sbrannen.

IMO, the dependency management that has been added is incomplete. The rule of thumb is that we manage all dependencies that are released together. In this case, I believe we should have dependency management for all of the Platform and all of Jupiter too (assuming that each is versioned and released as a whole.

@wilkinsona wilkinsona reopened this Sep 12, 2017
@snicoll
Copy link
Member

snicoll commented Sep 12, 2017

I agree it is incomplete and was expecting @wilkinsona to report that. However, I did remove params on purpose as it is marked experimental in JUnit's documentation. Not sure we should include such labeled artifact.

@wilkinsona some of those dependencies are used by plugins only so adding them to dependencyManagement would be actually useless.

@snicoll snicoll closed this in 8010f6e Sep 14, 2017
@sbrannen
Copy link
Member

@snicoll, thanks for the explanation regarding params.

I looked at your latest commit, and I understand the rationale for the changes. 👍

@eddumelendez eddumelendez deleted the update_junit_jupiter_ga branch January 17, 2018 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: dependency-upgrade A dependency upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants