Skip to content

AllureWriter in cypress 10 #152

Answered by pwpatton
pwpatton asked this question in Q&A
Aug 29, 2022 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

Ok, looks like user error on my part. I was confused why in the docs A in AllureWriter was capitalized but what I really needed to use was allureWriter.

My cypress.config.ts now looks like this and works great. Thanks @Shelex

import { defineConfig } from 'cypress';
const allureWriter = require('@shelex/cypress-allure-plugin/writer');

export default defineConfig({
  env: {
    allure: true,
    allureLogCypress: true,
    allureClearSkippedTests: true
  },
  e2e: {
    setupNodeEvents: (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) => {
      allureWriter(on, config);
      return config;
    }
  }
});

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Shelex
Comment options

You must be logged in to vote
4 replies
@Shelex
Comment options

@thiagocosenza
Comment options

@Shelex
Comment options

@thiagocosenza
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants