Skip to content

Improve JavaDoc for junit-platform-suite-api annotations #746

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

Closed
smoyer64 opened this issue Mar 22, 2017 · 14 comments
Closed

Improve JavaDoc for junit-platform-suite-api annotations #746

smoyer64 opened this issue Mar 22, 2017 · 14 comments

Comments

@smoyer64
Copy link
Contributor

smoyer64 commented Mar 22, 2017

Overview

With the adoption of a declarative suite mechanism in JUnit 5 proposed in #744, the annotations that were moved to the junit-platform-suite-api will be used more broadly than for test selection using the JUnit 4 JUnitPlatform runner.

Original Proposal

  • The javadocs for these annotations should be changed to describe their meaning without reference to this runner.
  • Make the javadocs for the junit-platform-suite-api annotations consistent with their expanded use.

Deliverables

Consider improving the JavaDoc for each of the following suite API annotations in order to better explain their generic purpose vs. usage with the JUnitPlatform runner for JUnit 4.

  • ExcludeClassNamePatterns
  • ExcludeEngines
  • ExcludePackages
  • ExcludeTags
  • IncludeClassNamePatterns
  • IncludeEngines
  • IncludePackages
  • IncludeTags
  • SelectClasses
  • SelectPackages
  • UseTechnicalNames
@Andrei94
Copy link
Contributor

@smoyer64 could you please assign the issue to me? I don't have access to this feature.

@smoyer64
Copy link
Contributor Author

@Andrei94 I can not ... but perhaps one of the @junit-team/junit-lambda members will mark it up-for-grabs and assign it to you.

@Andrei94
Copy link
Contributor

so then if I want to work for it how should I do it?

@smoyer64
Copy link
Contributor Author

@Andrei94 I should have been more clear ... I'm not a member of the core team so I can't assign issues.

In general, I find that the team is pretty happy to accept pull requests for tasks like this (javadocs and documentation don't tend to have architectural implications). If you fork the project, make the changes and submit a PR without having the issue assigned to you the only real risk is that someone else might also work on the task.

In my last response, it appears that I can't invoke the team as a group - perhaps @sormuras, @marcphilipp or @sbrannen will chime in with an official opinion.

@Andrei94
Copy link
Contributor

Ok @smoyer64 Thank you very much for the clarification. I already forked the project. 😃

@sbrannen
Copy link
Member

We have no intention of removing references to the JUnit 4 suite support on the platform.

That's why I deliberately added a new JUnit 4 Suite Support as the last section of the JavaDoc for each of those annotations.

If/when we introduce generic suite support (either in the Platform or in Jupiter), we will also reference those implementations from the suite API annotations.

Having said that, if you think the current wording is confusing or misleading, we are open to suggestions.

Cheers,

Sam

@smoyer64
Copy link
Contributor Author

Well ... clearly the wording was confusing to me! On the other hand, now that I've reread the javadocs and noted the JUnit 4 Suite Support heading above the reference to JUnit 4 and the JUnitPlatform runner I'm not sure. Since these annotations are part of an API, we can't possibly list out all the implementations that are created. On the other hand, I think it's worth referencing the built-in suites (plural assuming something like what's described in #744 is adopted).

I'm tempted to close this issue but let's leave it open and see whether anyone has suggestions for changes.

As an aside, I'm sorry I didn't look at the commit that changed the javadocs when the annotations were moved into junit-platform-suite-api ... I should have noticed that you'd thought through what was included.

@sbrannen
Copy link
Member

Since these annotations are part of an API, we can't possibly list out all the implementations that are created. On the other hand, I think it's worth referencing the built-in suites (plural assuming something like what's described in #744 is adopted).

My sentiments exactly! 😉

@sbrannen
Copy link
Member

I'm tempted to close this issue but let's leave it open and see whether anyone has suggestions for changes.

Sure.

And... BTW, I'll most certainly revise the JavaDoc for the entire suite API once we have built-in support in the Platform (other than the current JUnit 4 support).

@sbrannen
Copy link
Member

As an aside, I'm sorry I didn't look at the commit that changed the javadocs when the annotations were moved into junit-platform-suite-api ... I should have noticed that you'd thought through what was included.

No worries. I do my best to think things through, though I don't always succeed. ☺️

@sbrannen sbrannen changed the title Clean up javadocs for junit-platform-suite-api annotations Improve JavaDoc junit-platform-suite-api annotations Mar 24, 2017
@sbrannen sbrannen changed the title Improve JavaDoc junit-platform-suite-api annotations Improve JavaDoc for junit-platform-suite-api annotations Mar 24, 2017
@sbrannen
Copy link
Member

I'm modifying the title and description of this issue accordingly.

@sbrannen sbrannen added this to the 5.1 Backlog milestone Jul 19, 2017
@sbrannen sbrannen modified the milestones: 5.1 Backlog, 5.1 M1 Sep 20, 2017
@sbrannen
Copy link
Member

Additional polish has been applied in recent commits and most recently in 5810cf6.

Since no one has chimed in with further enhancement requests for the current JavaDoc, I am closing this issue.

Further refinements will be performed in conjunction with #744.

@sbrannen sbrannen self-assigned this Sep 21, 2017
@michaelajr
Copy link

michaelajr commented Nov 29, 2017

Any news on when the suite-api annotations will be supported in JUnit5 proper (platform, engine)? Would be great to have these work without the need to use the JUnit4 runner.

@sbrannen
Copy link
Member

This issue is closed.

The issue that will introduce support for declarative test suites (#744) is currently slated for 5.1 M2.

Andrei94 pushed a commit to Andrei94/junit5 that referenced this issue Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants