You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
418 B

  1. """QMK Python Unit Tests
  2. QMK script to run unit and integration tests against our python code.
  3. """
  4. from milc import cli
  5. @cli.entrypoint('QMK Python Unit Tests')
  6. def main(cli):
  7. """Use nose2 to run unittests
  8. """
  9. try:
  10. import nose2
  11. except ImportError:
  12. cli.log.error('Could not import nose2! Please install it with {fg_cyan}pip3 install nose2')
  13. return False
  14. nose2.discover()