Jarvis commands are available through the jarvis.commands
module.
from jarvis.commands import debug, debug_xml
def main():
a = "Hello World !"
debug(a)
These functions are use to display data in the Jarvis panels. All displayed strings are prefixed with a timestamp.
Here is a typical use of this function, given a unittest class called TestMyModule:
import unittest
class TestMyModule(unittest.TestCase):
...
def main():
filt = "test_"
suite = unittest.TestLoader().loadTestsFromTestCase(TestMyModule)
suite = filter(lambda x : str(x).startswith(filt), suite)
suite = unittest.TestLoader().suiteClass(suite)
result = unittest.TextTestRunner(verbosity=2).run(suite)
# Show the test_unit in jarvis
testunit_result(result)
# Misc replace_this