Created
March 16, 2017 23:33
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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