Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – Gradle run instrumentation test – how to exclude a package using command line?

Posted on November 11, 2022 By

Solution 1 :

I used -Pandroid.testInstrumentationRunnerArguments.notPackage=com.example.foo option in gradle test run command. It works!

Source:
https://medium.com/stepstone-tech/exploring-androidjunitrunner-filtering-options-df26d30b4f60

Problem :

https://github.com/googlesamples/android-testing-templates/tree/master/AndroidTestingBlueprint documentation tells you how to include a class while test run. Example

./gradlew app:connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.example.android.testing.blueprint.ui.espresso.EspressoTest

Is there a command which can be used for gradle instrumentation test run to exclude a package using command line?

READ  [FIXED] java - Using RxJava to observe List "add" and "remove" actions
Powered by Inline Related Posts
Android Tags:android, android-instrumentation, android-testing, gradle

Post navigation

Previous Post: [FIXED] android – Convert BMP image to PNG or JPG in Java without loading the entire image in memory
Next Post: [FIXED] xml – Android – prevent TextView to push out another element inside LinearLayout

Related Posts

[FIXED] java – Detecting if the Bitmap I have is black and white or a color image Android
[FIXED] android – How do I wait for a listener to run before continuing execution Android
[FIXED] android – Java & Order of Execution Android
[FIXED] android – How to set the initial start screen for a tab with jetpack compose Android
[FIXED] android – Jetpack Compose Text Show Confuse Android
[FIXED] java – Modify Text View values after clicking a button from another activity Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What is a good substitute for condensed milk?
  • ¿Como el cuerpo te avisa cuando te va a dar un infarto?
  • What is the luxury brand of Jaguar?
  • Who is Big poppa baseball player?
  • What material are foam runners?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme