A tool to ergonomically repeat a specific TestCafe test and skip other tests. Useful for debugging unstable tests.
npm i @klaster_1/testcafe-repeat-test
Test repeater only works if you use the globally available function and do not import it from TestCafe:
// Works
repeatTest(2)
test('Test', async t => {})
// Doesn't work
import {test} from 'testcafe'
repeatTest(2)
test('Test', async t => {})
import repeatTest from '@klaster_1/testcafe-repeat-test';
fixture`Demo`
repeatTest(3)
test('Demo', async (t) => {
console.log('Hello world')
})
// Log:
// Default
// √ Demo 1
// √ Demo 2
// √ Demo 3
import repeatTest from '@klaster_1/testcafe-repeat-test';
fixture`Demo`
repeatTest(2, {rename: false})
test('Demo', async (t) => {
console.log('Hello world')
})
// Log:
// Default
// √ Demo
// √ Demo