spek icon indicating copy to clipboard operation
spek copied to clipboard

Spek Android Studio plugin is missing run buttons for individual tests in androidTest sources

Open matejdro opened this issue 6 years ago • 5 comments

Spek plugin for Android Studio displays run button for individual tests in test sources (Unit Tests):

image

However, in androidTest sources (instrumented tests), buttons are missing:

image

Instrumented tests on Android often take a long time (for example many of them are UI tests that start up the app on the phone and click through UI). That means that running whole test class every time can significantly slow down development.

And since f prefix was dropped, there does not appear to be a way to only run single instrumented test.

matejdro avatar Oct 21 '19 08:10 matejdro

Just a heads up, individual test support was added to Android JUnit5's plugin: https://github.com/mannodermaus/android-junit5/commit/599eb29e996850a7d4023872aaba495c9f8722e8

matejdro avatar Nov 21 '19 07:11 matejdro

Hi @matejdro , is there instructions or tutorial about how to setup spek for android instrumented test?

vincentsong avatar Mar 23 '20 03:03 vincentsong

You just Set up JUnit5 instrumentation tests and then include spek dependecy normally.

matejdro avatar Mar 23 '20 04:03 matejdro

You just Set up JUnit5 instrumentation tests and then include spek dependecy normally.

thank you for the information, but after I setup it, I always got the error : Test framework quit unexpectedly

vincentsong avatar Mar 23 '20 05:03 vincentsong

Sorry, I have no idea why this happen. It might be related to this issue: https://github.com/spekframework/spek/issues/715

matejdro avatar Mar 23 '20 05:03 matejdro