https://cypress.io logo
hi all. i am using cypress mocha junit reporter. i...
# e2e-testing
g
hi all. i am using cypress mocha junit reporter. i want to add attachment to the output.xml like this
Copy code
it ('should include attachment', function () {
  this.test.attachments = ['/absolut/path/to/file.png'];
});
but i can't get it working. it complains that the 'this.test' here does not have attachments property. how to solve that? thanks
3 Views