javascript - Send email report with HTML file attached using node js after the run is complete using protractor -


i using nodemailer email sending in code. want run after test cases have been executed protractor. right now, mailing me old html file have in directory before run gets completed.

i tried using emailjs, got same result.

i want run after test gets completed , report generated, receive latest report.

place mail send script in oncomplete function in protractor.conf.js file.

var mailer = require(/* mail module */);  exports.config = {     // other config...      oncomplete: function () {         // send mail...     } }; 

Comments