-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
[POC/Proposal] Custom output defined by user #68
Conversation
BundleMonUnchanged files (11)
No change in files bundle size Unchanged groups (2)
Final result: ✅ |
Awesome idea! |
Codecov Report
@@ Coverage Diff @@
## master #68 +/- ##
==========================================
+ Coverage 53.16% 54.82% +1.65%
==========================================
Files 47 48 +1
Lines 1217 1244 +27
Branches 251 254 +3
==========================================
+ Hits 647 682 +35
+ Misses 570 562 -8
Continue to review full report at Codecov.
|
Sorry for the late response, I'm a bit busy (: Pushed some changes, let me know what u think. |
No problem, I totally understand :) |
@LironEr I checked your improvements and also added basic unit tests, would you take a look if they are correct? maybe there is smarter way to test it. Also, when I run unit tests and when they are run by github actions, there are some errors coming from |
Great! will review soon Thanks! |
Intention behind this PR | User story
Allow users to write custom plugin/output/processor (chose your own fancy word :D) in order to work with results returned by Bundlemon.
👨 As an user I would like to write my own integration with bundlemon that would allow to do anything with results - send to custom storage, send slack notification, save in various formats, create a Jira ticket etc.
💡 Inspired by Jest results processor option: https://jestjs.io/docs/configuration#testresultsprocessor-string
Benefits:
Use cases
Will call function exported by
custom-output.js
with passed report as parameter.Example file that meets requirements:
What needs to be done