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

Add optional reason to @PendingFeature #907

Merged
merged 2 commits into from
Sep 14, 2018

Conversation

leonard84
Copy link
Member

No description provided.

result.runCount == 1
result.failureCount == 0
result.ignoreCount == 0
// unfortunately we can't access the skip reason here, but at least the branch is coverd
Copy link
Member

Choose a reason for hiding this comment

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

Nit: typo in last word

@@ -25,6 +27,7 @@ protected AssertionError featurePassedUnexpectedly() {
}

protected AssumptionViolatedException assumptionViolation() {
return new AssumptionViolatedException("Feature not yet implemented correctly.");
return new AssumptionViolatedException("Feature not yet implemented correctly."
+ ("".equals(reason) ? "" : "Reason: "+reason));
Copy link
Member

Choose a reason for hiding this comment

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

If I'm not mistaken there's no space after the period now. It should be " Reason: ". Moreover spaces around the + would be more readable IMHO.

docs/release_notes.adoc Outdated Show resolved Hide resolved
@leonard84
Copy link
Member Author

PTAL

@leonard84 leonard84 merged commit a3c7dab into spockframework:master Sep 14, 2018
@leonard84 leonard84 deleted the pendingfeature-reason branch September 14, 2018 08:54
MartyIX pushed a commit to MartyIX/spock that referenced this pull request Oct 14, 2018
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