diff --git a/httprunner/cli.py b/httprunner/cli.py index 50290bef..78e2b6fb 100644 --- a/httprunner/cli.py +++ b/httprunner/cli.py @@ -174,5 +174,13 @@ def main_make_alias(): main() +def main_har2case_alias(): + """ command alias + har2case = httprunner har2case + """ + sys.argv.insert(1, "har2case") + main() + + if __name__ == "__main__": main() diff --git a/pyproject.toml b/pyproject.toml index b4e105fd..581e6588 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,7 @@ fastapi = "^0.49.0" httprunner = "httprunner.cli:main" hrun = "httprunner.cli:main_hrun_alias" hmake = "httprunner.cli:main_make_alias" +har2case = "httprunner.cli:main_har2case_alias" [build-system] requires = ["poetry>=1.0.0"]