Test Autodesk Maya scripts and modules with pytest
Project description
# Maya Test
[](https://travis-ci.org/arubertoson/mayatest)
[](https://coveralls.io/github/arubertoson/mayatest?branch=master)
[](https://scrutinizer-ci.com/g/arubertoson/mayatest/?branch=master)
[](https://badge.fury.io/py/mayatest)
[](https://opensource.org/licenses/MIT)
Wrapper to easily test maya scripts and modules with the powerful pytest framework.
## Getting Started
### Prerequisites
You'll need to install:
* Autodesk Maya (2014+)
* Python (2.7+)
### Installing
```bash
pip install mayatest
```
### Usage
Run mayatest in the folder of the script or module.
```bash
# To invoke pytest using mayapy from Maya 2017 do:
mayatest -m 2017
# Then the normal usage for pytest applies, e.g. to test specific file:
mayatest -m 2017 --pytest="test_sometest.py"
# to only run test_func
mayatest -m 2017 --pytest="test_sometest.py::test_func"
```
For more information using pytest go to their [docs](https://docs.pytest.org/en/latest/usage.html).
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
[](https://travis-ci.org/arubertoson/mayatest)
[](https://coveralls.io/github/arubertoson/mayatest?branch=master)
[](https://scrutinizer-ci.com/g/arubertoson/mayatest/?branch=master)
[](https://badge.fury.io/py/mayatest)
[](https://opensource.org/licenses/MIT)
Wrapper to easily test maya scripts and modules with the powerful pytest framework.
## Getting Started
### Prerequisites
You'll need to install:
* Autodesk Maya (2014+)
* Python (2.7+)
### Installing
```bash
pip install mayatest
```
### Usage
Run mayatest in the folder of the script or module.
```bash
# To invoke pytest using mayapy from Maya 2017 do:
mayatest -m 2017
# Then the normal usage for pytest applies, e.g. to test specific file:
mayatest -m 2017 --pytest="test_sometest.py"
# to only run test_func
mayatest -m 2017 --pytest="test_sometest.py::test_func"
```
For more information using pytest go to their [docs](https://docs.pytest.org/en/latest/usage.html).
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mayatest-0.1.2.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mayatest-0.1.2.tar.gz.
File metadata
- Download URL: mayatest-0.1.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9b8baede7bdf82555357feddd4bc51566d3af3b254ce507631da90eda395fbb
|
|
| MD5 |
2eb7ee3e7386cf5044d51e2e21317697
|
|
| BLAKE2b-256 |
1caa9b3f2d84ad824f8a14228758ea6241bb045f481d86b9b802da6faf0d2f9e
|
File details
Details for the file mayatest-0.1.2-py2.py3-none-any.whl.
File metadata
- Download URL: mayatest-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0df24462cedea6d5cb6f6030c73c8d71b78b8c51d3c3b3fb04cb6aeef0126f48
|
|
| MD5 |
679789d438b8806683c3fdd98dacdde3
|
|
| BLAKE2b-256 |
14fc3633359a067bfda69ace38d3274fa7e7eade7639b01af69a259c0232693d
|