Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matejdro opened this issue Oct 21, 2019 · 5 comments

Comments

@matejdro
Copy link

matejdro commented Oct 21, 2019

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
Copy link
Author

Just a heads up, individual test support was added to Android JUnit5's plugin: mannodermaus/android-junit5@599eb29

@vincentsong
Copy link

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

@matejdro
Copy link
Author

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

@vincentsong
Copy link

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

@matejdro
Copy link
Author

Sorry, I have no idea why this happen. It might be related to this issue: #715

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants