Skip to content

Instantly share code, notes, and snippets.

@hslabbert
Created March 16, 2017 23:33
Show Gist options
  • Save hslabbert/27d84d23005d3204eba011bd57b3745e to your computer and use it in GitHub Desktop.
Save hslabbert/27d84d23005d3204eba011bd57b3745e to your computer and use it in GitHub Desktop.
Split `tox -l` output into combined tox runs with coverage test split out for combined coverage
#!/usr/bin/env python3
"""
Credit to https://hynek.me/articles/testing-packaging/
"""
import sys
if __name__ == "__main__":
envs = [env.strip() for env in sys.stdin.readlines()]
print(
"detox -e " + ",".join(env for env in envs[:-1]) + "; "
"tox -e " + envs[-1]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment