Skip to main content

print nosetests result in the iPython notebook

Project description

ipynose

https://travis-ci.org/wikibootup/ipynose.svg?branch=master

print nosetests result in the iPython (notebook)

iPython notebook example here.

Usage

from ipynose import ipynose

1. no path

nosetests without specific path. (-v option default)

ipynose.show_nose_result()

1) If empty, Error should occur ... SKIP: showing class skipping
First node should be equal to last node ... SKIP: showing class skipping
1) Last node should contaions inserted self.item ... SKIP: showing class skipping
Initial Queue ... SKIP: showing class skipping
1) 'peek' returns first node item. ... SKIP: showing class skipping
test_dequeue ... ok
test_enqueue_when_empty ... ok
test_enqueue_when_not_empty ... ok
test_make_queue ... ok
test_peek ... ok

----------------------------------------------------------------------
Ran 10 tests in 0.014s

OK (SKIP=5)

2. Specific path

nosetests for specific file. (-v option default)

EXAMPLE_TEST_PATH = "py/queue/tests/test_queue.py"

ipynose.show_nose_result(EXAMPLE_TEST_PATH)

test_dequeue ... ok
test_enqueue_when_empty ... ok
test_enqueue_when_not_empty ... ok
test_make_queue ... ok
test_peek ... ok

----------------------------------------------------------------------
Ran 5 tests in 0.001s

OK

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ipynose-0.0.2.tar.gz (2.1 kB) Copy SHA256 hash SHA256 Source None Nov 11, 2015

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