Skip to content
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

Fix for JUnitXmlTestsListener that is removing part of test name when it contains dot #5139

Merged
merged 3 commits into from
Sep 30, 2019

Conversation

margussipria
Copy link
Contributor

Attempt to fix #5114 (and #2949)

@lightbend-cla-validator

Hi @margussipria,

Thank you for your contribution! We really value the time you've taken to put this together.

Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:

http://www.lightbend.com/contribute/cla

@eed3si9n
Copy link
Member

@margussipria Thanks for the contribution.
It seems like there are some scripted tests here that might be of your interest - https://github.com/sbt/sbt/blob/develop/sbt/src/sbt-test/tests/junit-xml-report/build.sbt

@eed3si9n
Copy link
Member

[error] 1 files must be formatted
[error] (testingProj / Compile / scalafmtCheck) 1 files must be formatted

@margussipria
Copy link
Contributor Author

I formatted the code, also Fixed MyNestedSuites test where MyInnerSuite isn't part of name.

Also added new coverage and new test checking names of testcases covering name with dot in it.

@eed3si9n
Copy link
Member

@margussipria Thanks for the update. Also have you signed the CLA?
http://www.lightbend.com/contribute/cla

@margussipria
Copy link
Contributor Author

I did sign it now, but that check didn't change?

@margussipria
Copy link
Contributor Author

Added some function return types so CLA test would be run again, those would be needed in distant future when migrating to and past Scala 2.13 so not totally worthless commit.

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

LGTM

@eed3si9n eed3si9n merged commit 108611c into sbt:develop Sep 30, 2019
@margussipria
Copy link
Contributor Author

is it possible to get this also to 1.3.x branch?

@eed3si9n
Copy link
Member

Sure.

@HeartSaVioR
Copy link

HeartSaVioR commented Mar 13, 2020

Do you have any update on this, given it was merged in Oct last year? Are there any releases containing this?

@margussipria
Copy link
Contributor Author

@eed3si9n about backporting this, who should do it? (expected that not me, "but who then")

@eed3si9n
Copy link
Member

Normally I do the backports. Looks like this slipped through the cracks.

eed3si9n pushed a commit to eed3si9n/sbt that referenced this pull request Mar 13, 2020
… it contains dot (sbt#5139)

Fix for JUnitXmlTestsListener removing part of test when it contains dot
Fixes sbt#5114
Fixes sbt#2949
@HeartSaVioR
Copy link

Hopefully sbt has been releasing bugfix versions monthly - unless there's a long pause, wouldn't be a big deal.

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.

sbt.JUnitXmlTestsListener removes part of test name if test name contains dot
4 participants