diff options
author | William Chang <william@factual.com> | 2019-11-20 22:17:07 -0800 |
---|---|---|
committer | William Chang <william@factual.com> | 2019-11-20 22:17:07 -0800 |
commit | e7f4d56592b3975c38af329e77b4efd9108495e8 (patch) | |
tree | 0a416bccbf70bfdbdb9ffcdb3bf136b47378c014 /lib/python/qmk/cli/pytest.py | |
parent | 71493b2f9bbd5f3d18373c518fa14ccafcbf48fc (diff) | |
parent | 8416a94ad27b3ff058576f09f35f0704a8b39ff3 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'lib/python/qmk/cli/pytest.py')
-rw-r--r-- | lib/python/qmk/cli/pytest.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/python/qmk/cli/pytest.py b/lib/python/qmk/cli/pytest.py new file mode 100644 index 0000000000..09611d750f --- /dev/null +++ b/lib/python/qmk/cli/pytest.py @@ -0,0 +1,16 @@ +"""QMK Python Unit Tests + +QMK script to run unit and integration tests against our python code. +""" +import subprocess + +from milc import cli + + +@cli.subcommand('QMK Python Unit Tests') +def pytest(cli): + """Run several linting/testing commands. + """ + flake8 = subprocess.run(['flake8', 'lib/python', 'bin/qmk']) + nose2 = subprocess.run(['nose2', '-v']) + return flake8.returncode | nose2.returncode |