Skip to content

Add getSuites() method in TestResultImpl #464

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

Merged
merged 2 commits into from
Nov 25, 2022

Conversation

topikachu
Copy link
Contributor

@topikachu topikachu commented Nov 24, 2022

There's an issue that testReport/api/json doesn't display the suites list. Add the missing getSuites method in the TestResultImpl interface, and integrate it with Junit TestResult.

junit-sql-storage plugin will adopt this interface once it is released.

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

Sorry, something went wrong.

@topikachu topikachu force-pushed the sql_storage_get_suites branch from aae2f13 to 41fe342 Compare November 24, 2022 02:35
There's an issue that testReport/api/json doesn't display the suites list. Add the missing getSuites method in the TestResultImpl interface, and integrate it with Junit TestResult.

junit-sql-storage plugin will adopt this interface once it is released.
@topikachu topikachu force-pushed the sql_storage_get_suites branch from 41fe342 to 2936b5c Compare November 24, 2022 02:38
Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you file a pull request to the sql storage plugin please?

@topikachu
Copy link
Contributor Author

Can you file a pull request to the sql storage plugin please?

I will after this change is published.
I create a new method, getSuites(), in the TestResultImpl.
This method has default implementation so won't break current Jenkins instance.

@timja
Copy link
Member

timja commented Nov 24, 2022

We prefer that at least one API consumer is provided so that the API can be evaluated together with the implementation before the API is published as once the API is published its hard to change.

You can consumer the incremental (release candidate) version from the pull request as the dependency, (your latest build is 1166.v2936b_5c7cb_e1, can be seen at https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/junit/1166.v2936b_5c7cb_e1/, or by clicking on the 'Incrementals' GitHub check)

topikachu pushed a commit to topikachu/junit-sql-storage-plugin that referenced this pull request Nov 24, 2022
Adopt the upstream Junit plugin new getSuites()
Align the Jenkins version with Junit Plugin
@topikachu
Copy link
Contributor Author

Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check more about the return value of getSuites method.
@topikachu
Copy link
Contributor Author

@timja timja merged commit a436e26 into jenkinsci:master Nov 25, 2022
@topikachu topikachu deleted the sql_storage_get_suites branch November 25, 2022 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants