Skip to content

Commit

Permalink
[bazel] Generating pytest.ini file with proper test discovery settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jul 27, 2019
1 parent db9ce7f commit f9eaae5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions py/test/run_pytest.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
import pytest

with open("pytest.ini", "w") as ini_file:
ini_file.write("[pytest]\n")
ini_file.write("addopts = -r=a\n")
ini_file.write("python_files = test_*.py *_tests.py\n")

raise SystemExit(pytest.main())

0 comments on commit f9eaae5

Please sign in to comment.