Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: README.md

Issue 29347154: Issue 4206 - Add opportunity to run specific test/method only (Closed)
Patch Set: Created June 30, 2016, 7:39 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | libadblockplus-android-tests/build.xml » ('j') | libadblockplus-android-tests/build.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.md
===================================================================
--- a/README.md
+++ b/README.md
@@ -72,9 +72,25 @@
2. In the 'libadblockplus-android-tests' directory run:
ant instrument install test
to build instrumentation tests app and perform testing or run:
ant test
-to run installed instrumentation tests app
+to run installed instrumentation tests app.
+
+To run specific **test** run:
+
+ ant testOnly -DtestClass=full.test.class.name
+
+For example:
+
+ ant testOnly -DtestClass=org.adblockplus.libadblockplus.tests.NotificationTest
+
+To run specific **test method** run:
+
+ ant testOnly -DtestClass=full.test.class.name#testMethod
+
+For example:
+
+ ant testOnly -DtestClass=org.adblockplus.libadblockplus.tests.NotificationTest#testAddNotification
« no previous file with comments | « no previous file | libadblockplus-android-tests/build.xml » ('j') | libadblockplus-android-tests/build.xml » ('J')

Powered by Google App Engine
This is Rietveld