We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e738297 commit bc7ee28Copy full SHA for bc7ee28
mutmut/__main__.py
@@ -690,6 +690,7 @@ def read_config():
690
691
692
@click.group()
693
+@click.version_option()
694
def cli():
695
pass
696
tests/e2e/test_cli_version.py
@@ -0,0 +1,9 @@
1
+from mutmut import __version__
2
+from mutmut.__main__ import cli
3
+from click.testing import CliRunner
4
+
5
+def test_cli_version():
6
+ result = CliRunner().invoke(cli, ["--version"])
7
8
+ assert result.exit_code == 0
9
+ assert __version__ in result.output
0 commit comments