Skip to content

Support Flank 8.x.x#75

Merged
runningcode merged 4 commits into
runningcode:masterfrom
francescocervone:feature/support-flank-8.x.x
Oct 18, 2019
Merged

Support Flank 8.x.x#75
runningcode merged 4 commits into
runningcode:masterfrom
francescocervone:feature/support-flank-8.x.x

Conversation

@francescocervone

Copy link
Copy Markdown
Contributor

Flank 8.0.0 added two breaking changes.

  • flaky-test-attempts has been renamed to num-flaky-test-attempts
  • repeat-tests has been renamed to num-test-runs

This PR adds support for Flank 8 maintaining support for older Flank's versions at the same time.

@runningcode runningcode left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the contribution. It looks great. I just have one preference in this repository. Using VersionNumber instead of a regex.

}

private fun isFlankVersionAtLeast(flankVersion: String, major: Int): Boolean {
val matchResult = FLANK_VERSION_REGEX.matchEntire(flankVersion)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This solution works, but I would prefer if we tried to use the more idiomatic VersionNumber api in gradle. Can you try to see if this same thing can be achieved with VersionNumber.parse(flankVersion).getMajor() > major?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure! Fixed in db765b5

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Beautiful

@runningcode
runningcode merged commit c66e7da into runningcode:master Oct 18, 2019
@runningcode

Copy link
Copy Markdown
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants