Skip to main content

A Python unittest ui tool that aims to support many unittest frameworks.

Project description

logo IUTest

"IUTest" stands for "Interactive UnitTest", it is an interactive python unit-test runner that aims to support various unit-test frameworks like nose2, pytest, etc.

It has a pretty yummy Chinese name "油条", which is Chinese fried breadstick typically for breakfast :)

To install IUTest

# For system default python or virtual env
pip install iutest

# For pipenv python
pipenv install iutest

IUTest Command Line Interface

# Get version:
iutest --version

# Run IUTest UI:
iutest
# or
iutest --ui

# Run all tests for python module or directory:
iutest --runner "nose2" --runAllTests "iutest" 

# Run tests by python module paths:
iutest --runner "nose2" --runTest "iutest.tests.test_dummypyunits" --runTest "iutest.tests.iutests"

Run in python

import sys
testerPath = 'E:/projects/iutest'  # Change to your path!
if testerPath not in sys.path:
    sys.path.append(testerPath)

import iutest
# Run all tests under given file system path:
iutest.runAllTests(startDirOrModule='pathToTestRootDir', topDir='pathToPythonTopDir', stopOnError=False)

# Run all tests by given python module path:
iutest.runAllTests(startDirOrModule='iutest.tests', stopOnError=False)

# Run tests by given python module paths:
iutest.runTests('iutest.tests.test_dummytests', 'iutest.tests.iutests')

# Run UI:
iutest.runUi()

Run IUTest in DCC application, e.g. Maya

There might be a way to use pip with Maya, but here we keep it simple.

  • Download IUTest and its dependency libraries, including nose2, pytest and reimport, these are all available from PyPi
  • Make these libraries available to Maya by adding their path to sys.path.
  • Install the code above as a Maya shelf button.
  • Click on the shelf button to run IUTest UI.

Project details


Download files

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

Source Distribution

iutest-0.1.2.tar.gz (45.8 kB view hashes)

Uploaded Source

Built Distribution

iutest-0.1.2-py3-none-any.whl (94.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page