-
-
Notifications
You must be signed in to change notification settings - Fork 687
Open
Labels
⚡ enhancementRequest for new functionalityRequest for new functionality
Description
I want to add a log file as an attachment to report after tests execution. I wanted to use AfterAll hook but according to this comment: cucumber/cucumber-js#1109 (comment)
this is impossible. How can I achieve that? Is this possible to import attach method directly to AfterAll hook?
// This is not working as AfterAll hook dosn't have acces to World instance
AfterAll(async function () {
const file = await fs.readFileSync('./features/support/scp_util/file.txt')
this.attach(file, 'text/plain');
});```
plocket, Andrewngabriel and dmytrokysel
Metadata
Metadata
Assignees
Labels
⚡ enhancementRequest for new functionalityRequest for new functionality