How to create and configure a custom plugin?
Pre-check
- [x] I'm aware that I can edit the docs and submit a pull request
Describe the improvement
I'd like to report
- [x] Unclear documentation
- [ ] A typo
- [x] Missing documentation
- [ ] Other
Description of the improvement / report
I'm looking to create an allure plugin to send a slack message with the link to the report and a brief summary of the results. But I don't understand anything in the documentation. And on google I find examples that seem to be from version 1. I'm not a java expert and I'm a bit lost. I would like to have a documentation like how to create a plugin.
- for example I don't know if I should make a fork of the allure2 project and submit a PR? or if I can make a standalone plugin?
- I don't know how to test my plugin locally. Should I add a
-pluginsparameter to the command line? or use a config file ? - I am looking for how to write the configuration file but I can't find anything in the documentation.
Can someone help me to create my first plugin that for example sends a slack notification with the number of successful tests and the number of tests in error. Once I figure it out, I can do a PR on the documentation.
thx
same concern
As for today, the easiest way is to maintain a custom fork of the allure2 repository or create a separate tool that relies on allure-report folder contents (like summary.json) to do the notifications.
The main deal with the plugins is that they were planned as something bigger, but they were never fully supported by the ecosystem, e.g., there is no way to add a plugin when using the Allure Jenkins Plugin.
So, even if you manage to create a proper plugin, you'll still need to include it into allure-comamndline.zip somehow to install the desired CI.
Meanwhile, Allure 3 is already in development and planned for this year. It will include a Slack notifications feature and introduce more possibilities for extending and customising the reports. Feel free to subscribe to the waiting list: https://allurereport.org/allure-report-3.0/