Skip to content

Instantly share code, notes, and snippets.

View devpie's full-sized avatar

Jan Müller devpie

  • Kassel, Germany
View GitHub Profile
@devpie
devpie / cypress-spec-chunk.js
Last active February 19, 2021 15:04
Get a chunk of spec files. Use it like 'cypress run --spec $(node scripts/cypress-spec-chunk.js 4 0)'.
#!/usr/bin/env node
/* tslint:disable:no-console */
const find = require("find");
const path = require("path");
const projectDirectory = path.resolve(__dirname, ".."); // because it is in ./scripts
const printChunk = (testFiles, totalChunks, chunkIndex) => {
@devpie
devpie / serial-test.js
Created February 18, 2021 12:53
Run cucumber based cypress feature files in serial processes. (Who knows why i needed this :D)
#!/usr/bin/env node
/* tslint:disable:no-console */
const proc = require("child_process");
const find = require("find");
const path = require("path");
const projectDirectory = path.resolve(__dirname, "..");