Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Question] Can we overwrite name of scenario in allure reporter or not? #4306

Unanswered
golfzaptw asked this question in Q&A
Discussion options

I need to add some prefix when the scenario used retry plugin for each case in my report like this
Screen Shot 2563年12月21日 at 16 21 52
Is it possible?

My simple test

const { configuration, I } = inject()
let tries = 0
Feature('Retry in workers').retry(configuration.reRunTimes)
codeceptjs.event.dispatcher.on(codeceptjs.event.test.passed, (test) => {
 const retryTimes = test.retryNum
 const msgRetry = `Retry ${retryTimes} times`
 if (retryTimes > 0) {
 I.say(msgRetry)
 }
 test.title = 'new test'
})
Scenario('Passed scenario', () => {
 I.assertEqual(tries, 0)
}).tag('retryTest')
Scenario('Flaky scenario', () => {
 tries++
 I.assertEqual(tries, 3)
}).tag('retryTest')
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #2728 on April 16, 2024 15:21.

AltStyle によって変換されたページ (->オリジナル) /