-
Notifications
You must be signed in to change notification settings - Fork 54
Update index allure report support.js #16
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
Conversation
Integrating allure report.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You got the idea, but use the right images
index.js
Outdated
{ | ||
const allureReporter = Container.plugins('allure'); | ||
if (allureReporter) { | ||
allureReporter.addAttachment('Screenshot diffImage', fs.readFileSync(path.join(global.output_dir, fileName)), 'image/png'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the actual Diff Image name, using Test Names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried, please review it again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check
index.js
Outdated
@@ -6,6 +6,8 @@ const fs = require('fs'); | |||
let assert = require('assert'); | |||
const mkdirp = require('mkdirp'); | |||
const getDirName = require('path').dirname; | |||
const Container = require('../container'); | |||
const Codeceptjs = require('../index'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why you need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we need container module for allure report. Updated my code again please review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@puneet0191 updated it now please see
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please recheck this, also try to add better PR title, you have 5 Pr's I can not figure out which ones for which feature. thanks.
Fixes #10
Idea about Integrating allure report.
Please review it @puneet0191