- Notifications
You must be signed in to change notification settings - Fork0
Python PyTest Test Runner for CodeRoad
coderoad/pytest-coderoad-deprecated
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
PyTest Python test runner for Atom-CodeRoad.
Install Python
pip install -U pytestpip install tap.py
There are two parts your tests will need: a task number and a feedback message.
Class title specifying the task number:class Test##
class Test01: # tests here class Test02: # tests here
Test method providing the feedback message and starting withtest_
class Test01: def test_b_is_not_true(self): assert b == True # fails with message "b is not true" def test_a_is_not_one(self): assert a == 1 # fails with message "a is not one"
Workspace files (created by the user) can be loaded inside of comments
# load('file.py')
These files will be loaded from the users working directory.
Data files can be by setting a second parameter totrue
.
# load('path/to/data.py', true)
These files will load from the specified tutorial directory inpackage.json.
package.json
config { tutorialDir: 'tutorial'}
See theexamples directory.
About
Python PyTest Test Runner for CodeRoad
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.