Metadata-Version: 2.1
Name: pytest-schedule
Version: 0.0.5
Summary: The job of test scheduling for humans.
Home-page: https://github.com/Alpaca00/pytest-schedule
Download-URL: https://github.com/Alpaca00/pytest-schedule
Author: Oleg Matskiv
Author-email: alpaca00tuha@gmail.com
License: MIT
Keywords: schedule,periodic,jobs,scheduling,clockwork,cron,scheduler,job scheduling,test job scheduling,pytest job scheduling,unittest job scheduling
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Natural Language :: English
Requires-Python: >=3.6
Description-Content-Type: text/markdown

#### pytest-schedule

The job of test scheduling for humans.

#### Installation

```
pip install pytest-schedule
```
You should to install the Pytest library if it's not already installed
```
pip install pytest
```

##### Usage:

#### Generate a tree of test module names, recursively, for the root directory of **pytest_schedule.json**
```
python -m pytest_schedule.generate schedule_json
```

##### Run tests with any custom tags from **pytest_schedule.json**

```
python -m pytest_schedule -t tag

python -m pytest_schedule --tags smoke,unittest,integration

python -m pytest_schedule --tag unittest --test_module unittest

python -m pytest_schedule --tag unittest --test_module pytest

```

##### Change the time to 00:00:00 according to the template in the pytest_schedule.json file
```
{
  "0.0.4": [
    {
      "smoke": [
        {
          "test_binary_tree_0.py": "10:15:00"
        }
      ]
    },
    {
      "smoke": [
        {
          "test_module_binary_tree_1_0.py": "10:10:00"
        }
      ]
    },
    {
      "tag": [
        {
          "test_module_binary_tree_2_0_0.py": "time"
        }
      ]
    },
    ...
}
```

#### The following options are available by the command:
```
$ python -m pytest_schedule --help
```
