-
-
Notifications
You must be signed in to change notification settings - Fork 2k
[Core] Add --publish option #2070
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
Changes from 47 commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
43b5195
Add --publish option to publish to reports.cucumber.io
0d41b1e
Change banner to cyan
803f9ec
Override CUCUMBER_MESSAGE_STORE_URL
ddde173
Create separate PublishFormatter
efe3f39
Allow --plugin to be enabled via properties
mpkorstanje b8cf4d4
Prefer inheritance over composition
mpkorstanje 40d985b
Use PLUGIN_PUBLISH_TOKEN_PROPERTY_NAME to enable publish plugin
mpkorstanje 29361b5
Use `properties.getOrDefault`
mpkorstanje 41421aa
Register cucumber.plugin.publish.url as constant
mpkorstanje f4fb2dd
--publish enables the plugin, so does properties
mpkorstanje e7564cc
Don't include publish plugin in supported plugins
mpkorstanje ff43c64
Add color aware to reporter
mpkorstanje 67ab0de
Add monochrome test
mpkorstanje d72c875
Enable monochrome on publish formatter
mpkorstanje 3560de9
More color aware
mpkorstanje 1ef7165
Clean up
mpkorstanje 92999a4
Clean up
mpkorstanje 44ae655
Clean up
mpkorstanje 69bd809
Fix getOrDefault
mpkorstanje a7c5ee2
Publish should be the last plugin to receive events
mpkorstanje 97521a2
Add to Cucumber options
mpkorstanje 3ca96c0
Add to CucumberEngineOptions
mpkorstanje 6214e10
Add to CucumberEngineOptions
mpkorstanje e61334a
Add to PLUGIN_PUBLISH_ENABLED_PROPERTY_NAME
mpkorstanje 58028c0
Merge remote-tracking branch 'origin/main' into publish-option
mpkorstanje 0a1a867
Validate token
mpkorstanje 08986af
Fix token
mpkorstanje 36281c0
[Build] Clean up release command
mpkorstanje c84bfab
Code formatting
3537cab
Extract banner class so we can create more banners with ease
0295666
Tweak banner text and colours
3f949ee
Formatting
c588b2a
Add option to quiet publish advertising banner
9f873f2
Use NoPublishFormatter in junit-platform
a742163
Merge with main
cd0706f
Merge branch 'main' into publish-option
7987d18
Avoid adding a plugin that does nothing
mpkorstanje f3e9559
Merge branch 'publish-option' of github.com:cucumber/cucumber-jvm int…
mpkorstanje 0e19f99
Fix merge
mpkorstanje 92d1637
Don't test your eye balls
mpkorstanje c9fdba9
Formatting
mpkorstanje 429851d
Fix merge
mpkorstanje 42ba971
Use case classes for Format and Formats
mpkorstanje 93a4886
require non null
mpkorstanje 53d5ff4
Fix typo
mpkorstanje 79d9db8
Clean up
mpkorstanje 250bd6a
Revapi
mpkorstanje 19ba439
Clean up
mpkorstanje 9c6e90a
Remove unused
mpkorstanje 73c0cff
Merge remote-tracking branch 'origin/main' into publish-option
mpkorstanje d9fc4b2
Nice curloption
mpkorstanje b69a04a
Nice curloption
mpkorstanje 31145a7
Merge remote-tracking branch 'origin/main' into publish-option
mpkorstanje 53e5be2
Enable publish plugin via feature toggle
mpkorstanje ab3e2cb
Clean up
mpkorstanje 55f81f3
Revapi
mpkorstanje aaf0125
Merge remote-tracking branch 'origin/main' into publish-option
90f8916
Merge branch 'main' into publish-option
d4a9b38
Merge branch 'main' into publish-option
e81fff8
Remove CUCUMBER_PLUGIN_PUBLISH_URL env var. The messages.cucumber.io …
ba136d0
Update changelog
7b30c84
Update changelog
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ public final class CurlOption { | |
private final HttpMethod method; | ||
private final List<Entry<String, String>> headers; | ||
|
||
CurlOption(URI uri, HttpMethod method, List<Entry<String, String>> headers) { | ||
public CurlOption(URI uri, HttpMethod method, List<Entry<String, String>> headers) { | ||
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. TODO: Nicer method here. |
||
this.uri = uri; | ||
this.method = method; | ||
this.headers = headers; | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
core/src/main/java/io/cucumber/core/options/PublishTokenParser.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package io.cucumber.core.options; | ||
|
||
import java.util.regex.Pattern; | ||
|
||
public final class PublishTokenParser { | ||
|
||
private PublishTokenParser() { | ||
|
||
} | ||
|
||
public static String parse(String argument) { | ||
Pattern pattern = Pattern.compile("^[A-Za-z0-9+/=]+$"); | ||
if (argument == null || !pattern.matcher(argument).matches()) { | ||
throw new IllegalArgumentException( | ||
"Invalid token. A token must consist of a RFC4648 Base64 encoded string"); | ||
} | ||
return argument; | ||
} | ||
|
||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.