eclipse - How to disable android studio unit tests (androidTest) -


i have imported eclipse project android studio

somehow figured out 1 of eclipse projects contained unit-test code imported project

it brought in code , put in src/androidtest dir

i didn't want there , causing build fail

is there means turn off androidtest stuff? can concentrate on whether app builds?

maybe via gradle setting? (this first exposure gradle)

maybe need delete androidtest java files seems bit final..

once rebuilding project in android studio - source files in project recompiled. plenty of different tasks start including :compiledebugandroidtestjavawithjavac causing build-break, once instrumental tests not compilable.

enter image description here

calling rebuilding in android studio ui passing these tasks gradle:

gradle tasks [:app:generatedebugsources, :app:generatedebugandroidtestsources, :app:preparedebugunittestdependencies, :app:mockableandroidjar, :app:compiledebugsources, :app:compiledebugandroidtestsources, :app:compiledebugunittestsources]

i.e. there's no obvious way how can modified.

workarounds:

  • comment out broken files in androidtest
  • remove/rename androidtest directory
  • build project android plugin gradle , passing commands, apart ones related instrumentaltests
  • avoid making/rebuilding solution, add(if it's not exist yet) android application configuration , build app itself, without instrumental tests

i hope, helps.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -