Skip to main content

test plan plugins for the nose testing framework

Project description

Extra plugins for the nose testing framework to load test case from a plan file.


usage:

>>> nosetests --with-plan-loader --plan-file PATH_OF_PLAN_FILE --loop 10

>>> nosetests --with-plan-loader --plan-file PATH_OF_PLAN_FILE --loop 10 --timeout 180


plan file content:

[tests]

packagename.modulename.classname.testcasename1 = 3

packagename.modulename.classname.testcasename2 = 5



1: allow to custom a test plan file. the plan file can define the test cases name list and the executed loop count in one loop.
All tests will be executed from top to end follow it's own loop count.

2: allow to define the test cycle number. the test will be executed cyclically until exceed the cycle number. default only
executed 1 cycle.

3: set timeout limitation(seconds) for each test method

start from command-line:
nosetests --with-plan-loader --plan-file PATH_OF_PLAN_FILE --loop 100
nosetests --with-plan-loader --plan-file PATH_OF_PLAN_FILE --loop 100 --timeout 180

start programmly:

>>> from customnoseplugins.planloader import PlanLoaderPlugin

>>> nose.run(argv=['--with-plan-loader', '--plan-file', 'PATH_OF_PLAN_FILE', '--loop', 'INTEGER_NUMBER'],
addplugins=[PlanLoaderPlugin()])

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

customnoseplugins-3.1.1.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file customnoseplugins-3.1.1.tar.gz.

File metadata

File hashes

Hashes for customnoseplugins-3.1.1.tar.gz
Algorithm Hash digest
SHA256 9df01ff5c236e845695211fed343bfb1cb4f5dd1240bb0408a8802c2723759e0
MD5 d73f99dff3249ea86b442c2fac4fda19
BLAKE2b-256 a1efd5da9b4b59773165342e507c2eb6bf85132bd2858959ef341e436aff73e1

See more details on using hashes here.

Supported by

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