Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Manages a test suite across multiple python contexts commonly found in a VFX production environment

Project description

vfxtest


What's this about?

This project is about managing a test suite for a Python codebase that is used in multiple contexts.

Common contexts found in a VFX production environment are:

  • standalone Python 2.7
  • standalone Python 3.x
  • embedded Python interpreters inside DCC's:
    • Maya/mayapy
    • Houdini/hython
    • Nuke
    • ...

Where's the benefit?

Doing Test Driven Development in Python is fairly straight forward utilizing packages such as unittest and mock.

It's also really comfortable to get feedback about code coverage using the coverage package.

However...

When a Python codebase is used inside multiple contexts that do not know each other it is quite difficult to gather accurate metrics about the overall test coverage.

And this is where vfxtest tries to fill the gap.

vfxtest is just a thin wrapper around unittest, mock and coverage that let's you run a test suite for each context and then presents the combined code coverage of all those tests.

I basically scratched my own itch...

While starting to embrace TDD in a VFX production environment I had this need and did not find an obvious existing solution to it.

Documentation

Soon to be found on vfxtest.readthedocs.com.

Stay tuned... :)

'Impostor Syndrome' Disclaimer

I'm really still in my first inning of the whole TDD game.

Therefore I'm fully aware that I probably know barely enough to be dangerous right now. :)

If there already happens to be an existing go-to solution for this problem out there on the interwebs, I'd love to know about it!

Also if any part of this could be improved (or makes your eyes bleed) please give me a heads up! :)

That said, I hope that somebody will get some benefit out of this!

Everything that encourages and helps maintaining a test suite in VFX is valuable, as far as I'm concerned... :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for vfxtest, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size vfxtest-0.2.0-py2-none-any.whl (17.9 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size vfxtest-0.2.0-py3-none-any.whl (17.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size vfxtest-0.2.0.tar.gz (16.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page