Skip to content Skip to sidebar Skip to footer

Can Pytest Run At A Pre-scheduled Time?

I am using pytest to run my tests using python3 script like below: pytest -s test_file.py | tee -a myoutput.log It works. Now I would like to run this at a specific time everyday,

Solution 1:

I think it can be done by using cron output. eg:

42 00 * * * /usr/bin/pytest pytest -s /data/smc/test_file.py >> /Your-log-path.log 2>&1

Post a Comment for "Can Pytest Run At A Pre-scheduled Time?"