Skip to content

v3.1.0

Compare
Choose a tag to compare
@LironEr LironEr released this 13 May 13:29
· 55 commits to master since this release

Features

  • Add the option to disable this reporter by adding env var DISABLE_CYPRESS_MOCHAWESOME_REPORTER=true (PR #79) resolves #68
  • Add addTestContext command, uses Mochawesome addContext under the hood (PR #81) resolves #75
      // context can be a simple string
      cy.addTestContext('simple string');
    
      // context can be a url and the report will create a link
      cy.addTestContext('http://www.url.com/pathname');
    
      // context can be an image url and the report will show it inline
      cy.addTestContext('http://www.url.com/screenshot-maybe.jpg');
    
      // context can be an object with title and value properties
      cy.addTestContext({
        title: 'expected output',
        value: {
          a: 1,
          b: '2',
          c: 'd',
        },
      });

Fixes

  • Revert: Ignore hooks if this reporter is not the active reporter (PR #78) resolves #76
  • Don't copy screenshots if the source and destination are the same (PR #80) resolves #52