jenkins-bot has submitted this change and it was merged.
Change subject: [IMPROV] tests: Document usage of write env vars
......................................................................
[IMPROV] tests: Document usage of write env vars
Instead of being specific to Travis make clear that also failure tests are
disabled be default and only enabled on Travis (except for the 'wikimedia'
user). It also documents that both variables work independently so that failure
tests aren't done when normal tests are enabled.
Change-Id: I47561267cb905fcf84fd986ef9dd15a85cf20b10
---
M tests/README.rst
1 file changed, 7 insertions(+), 3 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/README.rst b/tests/README.rst
index 3080680..8ef0b6b 100644
--- a/tests/README.rst
+++ b/tests/README.rst
@@ -138,8 +138,8 @@
and **should** fail. If there is a bug in pywikibot or MediaWiki, these
tests **may** actually perform a write operation.
-These 'edit failure' tests are disabled by default for the 'wikimedia'
builds,
-but are enabled by default on builds by any other github account.
+These 'edit failure' tests are disabled by default. On Travis they are enabled
+by default on builds by any other github account except 'wikimedia'.
To disable 'edit failure' tests, set PYWIKIBOT2_TEST_WRITE_FAIL=0
@@ -148,10 +148,14 @@
should always only write to 'test' wikis.
These 'write' tests are disabled by default, and currently can not be
-run on travis or appveyor as they require interaction using a terminal.
+run on travis or appveyor as they require interaction using a terminal. Also
+enabling them won't enable 'edit failure' tests.
To enable 'write' tests, set PYWIKIBOT2_TEST_WRITE=1
+Enabling only 'edit failure' tests or 'write' tests won't enable the
other tests
+automatically.
+
Contributing tests
==================
--
To view, visit
https://gerrit.wikimedia.org/r/215332
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I47561267cb905fcf84fd986ef9dd15a85cf20b10
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>