Skip to content

Instantly share code, notes, and snippets.

@ssmythe
Created April 19, 2019 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssmythe/c12cba2fb8c9ff5df7337838a56fe97d to your computer and use it in GitHub Desktop.
Save ssmythe/c12cba2fb8c9ff5df7337838a56fe97d to your computer and use it in GitHub Desktop.
Pycharm unittest wrapper for bats
import unittest
import subprocess
class BatsTests(unittest.TestCase):
def test_run_bats(self):
process = subprocess.run("/usr/bin/env bats --tap .".split())
self.assertEqual(process.returncode, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment