diff --git a/.arcanist-extensions b/.arcanist-extensions new file mode 160000 index 0000000..bd24636 --- /dev/null +++ b/.arcanist-extensions @@ -0,0 +1 @@ +Subproject commit bd2463671edf8b8b385c095b27a5ebeef7466a5d diff --git a/.arcconfig b/.arcconfig new file mode 100644 index 0000000..945ae9e --- /dev/null +++ b/.arcconfig @@ -0,0 +1,8 @@ +{ + "load": [ + ".arcanist-extensions/tap_test_engine" + ], + + "unit.engine": "TAPTestEngine", + "unit.engine.tap.command": "./test.py" +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f486e7f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.swp +.cache +__pycache__ +*.pyc diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..2188725 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule ".arcanist-extensions"] + path = .arcanist-extensions + url = https://github.com/tagview/arcanist-extensions.git diff --git a/README.md b/README.md index d2c739c..03027cb 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,33 @@ +Install tappy: + pip install tap.py + Build status ? [Build Status](https://jenkins.c4science.ch/buildStatus/icon?job=gromacs) # Header 1 ## Header 2 ### Header 3 # test # test # test test TEST TEST TEST TEST TEST TEST TEST [c4science](https://c4science.ch) {F54607} NEW FEATURE NEW FEATURE TEST TEST diff --git a/python.py b/python.py index 3f44cee..799ca25 100755 --- a/python.py +++ b/python.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 -print "test" -pint "test" +def myfunc(): + return "test" + diff --git a/test.py b/test.py new file mode 100755 index 0000000..88e2963 --- /dev/null +++ b/test.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python2 +import unittest, pytest +import python as p + +class Test(unittest.TestCase): + + def test_return(self): + self.assertTrue(p.myfunc() == 'test') + self.assertTrue(p.myfunc() != 'test') + +if __name__ == '__main__': + pytest.main(['./test.py', '--tap-stream'])