Skip to content

Commit

Permalink
bump aap-lv2 and add androidTest.
Browse files Browse the repository at this point in the history
The instrumentation tests still fail due to known issue #1.
  • Loading branch information
atsushieno committed May 24, 2021
1 parent d60b2f0 commit 326d4e4
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 47 deletions.
11 changes: 7 additions & 4 deletions aap-guitarix/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ android {
versionName "0.1.12"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"

externalNativeBuild {
cmake {
Expand Down Expand Up @@ -59,11 +58,15 @@ android {
}

dependencies {
implementation 'org.androidaudioplugin:androidaudioplugin-lv2:0.1.12'
implementation 'org.androidaudioplugin:androidaudioplugin-ui-compose:0.6.10'
implementation 'org.androidaudioplugin:androidaudioplugin-lv2:0.1.14'
implementation 'org.androidaudioplugin:androidaudioplugin-ui-compose:0.6.13'

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'org.androidaudioplugin:androidaudioplugin:0.6.13'
androidTestImplementation 'org.androidaudioplugin:androidaudioplugin-testing:0.6.13'
androidTestImplementation 'androidx.test:core:1.3.0'
androidTestImplementation 'androidx.test:rules:1.3.0'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package org.androidaudioplugin.aap_mda_lv2

import android.content.Context
import androidx.test.core.app.ApplicationProvider
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.rule.ServiceTestRule
import org.androidaudioplugin.AudioPluginHostHelper
import org.androidaudioplugin.androidaudioplugin.testing.AudioPluginServiceTesting
import org.junit.Rule
import org.junit.Test

class PluginTest {
private val applicationContext = ApplicationProvider.getApplicationContext<Context>()
private val testing = AudioPluginServiceTesting(applicationContext)
@get:Rule
val serviceRule = ServiceTestRule()

@Test
fun getPluginServiceInfo() {
testing.getPluginServiceInfo()
}

@Test
fun basicServiceOperationsForAllPlugins() {
testing.basicServiceOperationsForAllPlugins()
}

@Test
fun repeatDirectServieOperations() {
for (i in 0 until 5)
basicServiceOperationsForAllPlugins()
}
}

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0-alpha15'
classpath 'com.android.tools.build:gradle:7.1.0-alpha01'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.4.30"
}
Expand Down

0 comments on commit 326d4e4

Please sign in to comment.