-
-
Notifications
You must be signed in to change notification settings - Fork 747
-
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')
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment