-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Core] Deprecate Formatter interface #1407
Changes from 4 commits
904a3c0
1a6527e
dd27f59
a671b22
c959e1b
a21c52e
2e5ee4a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
package cucumber.api.formatter; | ||
|
||
import cucumber.api.Plugin; | ||
|
||
/** | ||
* Interface for Formatters that use ANSI escape codes to print coloured output. | ||
* Interface for Plugins that use ANSI escape codes to print coloured output. | ||
*/ | ||
public interface ColorAware extends Formatter { | ||
public interface ColorAware extends Plugin { | ||
/** | ||
* When set to monochrome the formatter should not use colored output. | ||
* When set to monochrome the plugin should not use colored output. | ||
* <p> | ||
* For the benefit of systems that do not support ANSI escape codes. | ||
* | ||
* @param monochrome true iff monochrome output should be used | ||
* @param monochrome true if monochrome output should be used | ||
*/ | ||
void setMonochrome(boolean monochrome); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package cucumber.api.formatter; | ||
|
||
import cucumber.api.Plugin; | ||
|
||
/** | ||
* Interface for Formatters that need to know if the Runtime is strict. | ||
* Interface for Plugins that need to know if the Runtime is strict. | ||
*/ | ||
public interface StrictAware extends Formatter { | ||
public interface StrictAware extends Plugin { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you think it would be a good idea for all marker interfaces to extend from Plugin? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure what you mean; did I miss anything? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The EventListner I believe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. EventListener is not a marker interface; it has a method: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good one. Would it be a good idea to make EventListener extend from Plugin? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. (Updated) |
||
/** | ||
* When set to strict the formatter should indicate failure for undefined and pending steps | ||
* When set to strict the plugin should indicate failure for undefined and pending steps | ||
* | ||
* @param strict true iff the runtime is in strict mode | ||
* @param strict true if the runtime is in strict mode | ||
*/ | ||
void setStrict(boolean strict); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\o/