diff --git a/CHANGELOG.md b/CHANGELOG.md index 9198cec6..7799e613 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## 2.2.1 (2019-06-25) +**Features** + +- update default `.gitignore` of new created scaffold project + **Bugfixes** - fix extend with testcase reference in format version 2 diff --git a/httprunner/utils.py b/httprunner/utils.py index e8e90747..2a422846 100644 --- a/httprunner/utils.py +++ b/httprunner/utils.py @@ -432,7 +432,14 @@ def create_scaffold(project_name): # create .gitignore file ignore_file = os.path.join(project_name, ".gitignore") - ignore_content = ".env\nreports/*" + ignore_content = "\n".join([ + ".env", + "reports/*", + "__pycache__/*", + "*.pyc", + ".python-version", + "logs/*" + ]) with open(ignore_file, "w") as f: f.write(ignore_content)