Bug 1285299 - Add pytest.ini to change logging in local test runs; r?maja_zf
Add the Pytest manifest file "pytest.ini" to the `tests/harness_unit`
directory, to modify the arguments passed to the `pytest.main` call
for all tests. This may override the `pytest.main` options specified
in the `if __name__ == '__main__'` block for each test module,
and thus can be used to set defaults for all modules at once.
Add options to disable Pytest's terminalreporter (default Pytest
stdout logging) and instead use the pytest-mozlog plugin to log
to stdout with TBPL formatting. As TBPL logs are used when the
harness unit tests are run on Taskcluster, this makes the output
when running the tests locally match the output in automation.
MozReview-Commit-ID: GJe420g6dzX
new file mode 100644
--- /dev/null
+++ b/testing/marionette/harness/marionette/tests/harness_unit/pytest.ini
@@ -0,0 +1,7 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+[pytest]
+# Disable pytest terminal logging to stdout, use TBPL logging from pytest-mozlog instead
+addopts = -p mozlog.pytest_mozlog.plugin --log-tbpl - -p no:terminalreporter