I'm trying to run simple test in quarantine mode:
test.only("test", async t => { await t.expect(true).notOk(); });
Here is my runner
const createTestCafe = require("testcafe");
let testcafe = null;
const runTests = (testFiles) => {
const runner = testcafe.createRunner();
return runner
.src(testFiles)
.browsers(["chrome"])
.run({
quarantineMode: true
});
};
createTestCafe("localhost", 1337, 1338)
.then(tc => {
testcafe = tc;
return runTests(["src/tests/"])
})
.then(() => testcafe.close());
But the test still runs only for one time. I also tried to add config file near with my package.json file and near with my runner file, but still no results.
Aucun commentaire:
Enregistrer un commentaire