Schedule test runs cron can't express
Pick a schedule, a time and a timezone. Get the cron line, or where cron can't do it alone, the closest line plus a guard for GitHub Actions, GitLab CI or crontab. Check the next 12 runs before you use it.
Building your schedule
Next 12 runs
Config to copy
Swap npm test for your own test command.
How the guard works
Cron fires on a fixed pattern of minutes, hours, days and months. When your schedule doesn't fit that pattern, run cron on the closest one and let a one-line check skip the extra runs.
Cron fires on the closest pattern
For every other Monday or the first Monday of the month, cron runs every Monday at your time.
The guard checks the date
A shell test counts whole weeks since your first run, or checks the day of the month in your timezone.
Extra runs stop in seconds
On GitHub Actions the test steps are skipped. On GitLab CI and crontab the job exits before the tests start.
Cron can do these alone
- Every day, weekdays, or a set of days like Monday, Wednesday and Friday
- Every 1, 2, 3, 4, 6, 8 or 12 hours
- A fixed day of the month, like the 1st or the 15th
These need a guard
- Every other week, or every 3 or 4 weeks
- The first, second, third or fourth weekday of the month, like the first Monday
- The last weekday of the month, like the last Friday
FAQ
Did we miss a question?
Email us directly →
0 6 1-7 * 1 runs on days 1 to 7 of the month and on every Monday, about 11 times a month. The fix is to run every Monday (0 6 * * 1) and check that the date is between 1 and 7.date +%V prints the ISO week number, and 2026 has 53 weeks: Monday December 28, 2026 is week 53 and Monday January 4, 2027 is week 1. Both are odd, so a parity check runs two weeks in a row. The builder counts whole weeks from your first run instead, which stays even across years.# for the Nth weekday and L for the last. GitHub Actions and standard crontab don't, so a guard is the portable way.More free tools
See all free toolsFlaky Test Finder
Compare two or more test runs to find your flaky tests, your flake rate and the likely cause of each failure.
Open the toolJUnit Report Viewer
Open a JUnit XML report in your browser with failures first, stack traces and the slowest tests, then download it as HTML.
Open the toolTest Case Converter
Turn a TestRail, Xray, Zephyr Scale, Azure DevOps or spreadsheet export into plain-English tests, and plain-English tests back into importable test cases.
Open the toolGet New Free Tools Every Month
We're building more tools for QA teams and developers. Get about one email a month with the new tools and what's new in Pie.
Run real-user tests on your schedule.
Pie runs plain-English tests on web and mobile apps like a real user, reruns failures to check them and reports what broke.