allure-plugin
allure-plugin copied to clipboard
Is there a way to generate and send the summary report by email?
It would be nice to have such functionality on our CI.
+1
+1
+1
+1
+1
+1
+1
https://github.com/allure-framework/allure2/issues/127
+1
+1
+1
+1
I'm also looking for something similar
+1
+1
+1
This is not in scope of allure!
If you are using CI you can either use gradle/ant task to send email or you can send email from jenkins...
-5
+1 I think it will be nice to have just a screenshot of the Summary page(or even better any page) of the report so that we can send it over email. I would agree with @MartinKeprta that sending the email itself is out of scope for Allure.
the main idea is that Allure can generate a single html file with report summary to /allure-report/export folder, and then you can configure Jenkins to send it via email. At the moment the only issue from our side is that we have no template for such email. It would be so nice if some of you will contribute it
https://github.com/allure-framework/allure2/blob/master/allure-generator/src/main/resources/tpl/mail.html.ftl - Freemarker template
https://github.com/allure-framework/allure2/blob/master/allure-generator/src/main/java/io/qameta/allure/mail/MailPlugin.java - Mail plugin
+1
Hi @baev,
Could you please point on the references that can be used for the email template creation?
Thanks, Dmitriy
@bop0hz
At the moment there is draft template present in allure generator. See
https://github.com/allure-framework/allure2/blob/c4496b2ae22465affe64a24acafe72349ac1153a/allure-generator/src/main/java/io/qameta/allure/mail/MailPlugin.java https://github.com/allure-framework/allure2/blob/c4496b2ae22465affe64a24acafe72349ac1153a/allure-generator/src/main/resources/tpl/mail.html.ftl
If you are going to implement it, here is some thoughts:
- we need to implement some sort of overview page summary from report.
- template work offline (include external scripts and styles directly to the template)
- mail should be displayed correctly in major mail clients
Hello Team,
+1,
Need your help in solving this functionality as this helps rather going and checking the required report from html page all the time, it solves the problem by receiving the information via email.
Hi @baev,
Is there an expected time arrival for this 'Allure summary report by email' feature release?
HI @baev any update on this please?
HI Team,
This is an indispensable feature to have. Please let us know if it is expected soon.
I believe until then we can continue to use - https://github.com/fescobar/allure-docker-service#customize-emailable-report
Hey Guys,
I finally found a work around which doesn't involve any third party hosting or using amazon was s3 bucket. Please find my answer which involves a shell script/batch script in the below stackoverflow link,
https://stackoverflow.com/questions/41960081/how-to-send-an-email-of-allure-report/64011632#64011632
Hope this helps for those who are facing the same issue.
Thanks!!
I've made a tool to build whole allure generate' result folder into a single html file viewable from browser: https://github.com/MihanEntalpo/allure-single-html-file