(job, name)
| 25 | } |
| 26 | |
| 27 | function stepText(job, name) { |
| 28 | const lines = jobText(job).split("\n"); |
| 29 | const start = lines.indexOf(` - name: ${name}`); |
| 30 | assert.ok(start >= 0, `missing step ${name}`); |
| 31 | const end = lines.findIndex((line, index) => index > start && /^ - /.test(line)); |
| 32 | return lines.slice(start, end < 0 ? undefined : end).join("\n"); |
| 33 | } |
| 34 | |
| 35 | function runBlock(step) { |
| 36 | const lines = step.split("\n"); |
no test coverage detected