Skip to content

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

Closed
wants to merge 4 commits into from

Conversation

srbhss
Copy link

@srbhss srbhss commented Mar 25, 2019

Fixes #10
Idea about Integrating allure report.
Please review it @puneet0191

Integrating allure report.
@srbhss srbhss marked this pull request as ready for review March 25, 2019 06:31
Copy link
Member

@puneet0191 puneet0191 left a 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');
Copy link
Member

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

Copy link
Author

@srbhss srbhss Mar 25, 2019

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.

Copy link
Member

@puneet0191 puneet0191 left a 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');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you need this?

Copy link
Author

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

Copy link
Author

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

Copy link
Member

@puneet0191 puneet0191 left a 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.

@srbhss srbhss changed the title Update index.js Update index allure report support.js Apr 1, 2019
@srbhss srbhss closed this Apr 1, 2019
@srbhss srbhss reopened this Apr 9, 2019
@puneet0191 puneet0191 closed this Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate Allure Reporting
2 participants