如何为androidTest禁用proguard

如何为androidTest禁用proguard,android,android-proguard,Android,Android Proguard,如何为浓缩咖啡测试禁用proguard 我为调试生成类型启用了proguard。但我想禁用proguard进行浓缩咖啡调试测试 debug { minifyEnabled true shrinkResources true useProguard true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

如何为浓缩咖啡测试禁用proguard

我为调试生成类型启用了proguard。但我想禁用proguard进行浓缩咖啡调试测试

debug {
        minifyEnabled true
        shrinkResources true
        useProguard true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        testProguardFile 'test-proguard-project.pro'
    }
我的test-proguard-project.pro看起来像

-dontoptimize
-dontwarn
-dontobfuscate

proguard仍在优化测试应用程序。请帮助我如何禁用测试应用程序的proguard。

方法是打开
minifyEnabled
但关闭
proguard

minifyEnabled true
useProguard false

这不是答案,因为它禁用了整个变体的proguard