How to disable unit testing for Connect SDK Lite on Android project? -


i have added connect sdk lite sources android project , looking use stream apple tv. chose use sources because project has bunch of libraries sources , dependencies connect sdk conflicting these libraries. way rid of them manually edit connect sdk gradle file.

i want disable unit testing connect sdk because don't find relevant small function going using for. our build machines keep failing our project build because of unit tests in connect sdk module failing. don't want bother fixing tests since i'm looking use sdk's functionality. changes can make build.gradle these tests aren't run?

here gradle file connect sdk:

buildscript {     repositories {         jcenter()     }     dependencies {         //classpath 'com.android.tools.build:gradle:1.2.3'         //classpath 'org.robolectric:robolectric-gradle-plugin:1.1.0'     } }  allprojects {     repositories {         jcenter()     } }  apply plugin: 'com.android.library' //apply plugin: 'org.robolectric' apply plugin: 'jacoco'   jacoco {     toolversion = "0.7.1.201405082137" }  task jacocotestreport(type:jacocoreport, dependson: "check") {     group = "reporting"      description = "generate jacoco coverage reports"      classdirectories = filetree(             dir: 'build/intermediates/classes/debug',             excludes: ['**/r.class',                        '**/r$*.class',                        '**/*$viewinjector*.*',                        '**/buildconfig.*',                        '**/manifest*.*']     )      additionalsourcedirs = files(android.sourcesets.main.java.srcdirs)     sourcedirectories = files(android.sourcesets.main.java.srcdirs)     executiondata = files('build/jacoco/testdebug.exec')      reports {         xml.enabled = true         html.enabled = true     }  }  build.dependson jacocotestreport  android {     compilesdkversion 22     buildtoolsversion '22.0.1'      packagingoptions {         exclude 'license.txt'         exclude 'meta-inf/license'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/notice'     }      sourcesets {         main {             manifest.srcfile 'androidmanifest.xml'             java.srcdirs = [                     'src',                     'core/src',             ]             resources.srcdirs = ['src']             aidl.srcdirs = ['src']             renderscript.srcdirs = ['src']             res.srcdirs = ['res']             assets.srcdirs = ['assets']         }         test {             java.srcdirs = [                     'core/test/src',             ]         }     }     buildtypes {         debug {             testcoverageenabled = true         }         release {             minifyenabled false         }     } }  android.testoptions.unittests.all {     include '**/*test.class' }  dependencies {     compile files('core/libs/java-websocket-patch.jar')     compile files('core/libs/javax.jmdns_3.4.1-patch2.jar')      //compile 'com.android.support:support-v4:22.0.0'     //compile 'com.android.support:appcompat-v7:22.0.0'      compile project(':android-support') // modified gradle commenting out support , appcompat above, , added line      testcompile 'org.apache.maven:maven-ant-tasks:2.1.3'     testcompile 'junit:junit:4.12'     testcompile 'org.robolectric:robolectric:2.4'     testcompile 'org.mockito:mockito-all:1.10.19'     testcompile 'org.powermock:powermock-api-mockito:1.6.2'     testcompile 'xmlunit:xmlunit:1.4' }  apply from: 'maven-push.gradle' 


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -