spek icon indicating copy to clipboard operation
spek copied to clipboard

Adding Spek test to configuration of another Spek test is not working in AS 3.5

Open ispbox opened this issue 6 years ago • 9 comments

The story started here: https://github.com/spekframework/spek/issues/773

Issue is with running one Spek test from another one via configuration option: Attach another configuration

I've created small sample project, please take a look. SpekTest.zip

If you run SampleSpekTest - it works pretty fine. But RunAllSpekTest is not working, because it has another configuration added. If you remove it, and restart Android Studio - this second test will start work.

BTW, after failure to run RunAllSpekTest you will not be able to run even SampleSpekTest until restart of AS!

ispbox avatar Sep 01 '19 17:09 ispbox

The issue is still there with 2.0.7.

ispbox avatar Sep 14 '19 14:09 ispbox

Yes, I haven't looked at this yet. In the meantime can you just use a gradle task to run everything?

raniejade avatar Sep 14 '19 15:09 raniejade

@raniejade Do you mean something like ./gradlew testVariantNameUnitTest?

My experience with that some time ago finished with disability to run multi-module tests in single task. Probably that's easy, but I didn't find any way. Currently I just run tests by hand, one after one.

ispbox avatar Sep 14 '19 17:09 ispbox

Do you mean something like ./gradlew testVariantNameUnitTest?

Yes

My experience with that some time ago finished with disability to run multi-module tests in single task.

You mean, it does not work anymore?

(sorry for the delayed reply)

raniejade avatar Sep 17 '19 09:09 raniejade

I failed to make it working for multiple modules. In other words, it never worked for me. Maybe will do one more attempt to learn how to make this working via Gradle.

ispbox avatar Sep 17 '19 10:09 ispbox

Hello @ispbox. Any success with resolving the issue?

guliash avatar Nov 14 '19 13:11 guliash

https://issuetracker.google.com/issues/144443063 Opened issue.

guliash avatar Nov 14 '19 17:11 guliash

@guliash No, unfortunately I didn't have enough time to look at this issue. Tried right now, and the issue is still there with Spek 2.0.8. Thanks for opening issue.

ispbox avatar Nov 17 '19 12:11 ispbox

This should be resolved in Android Studio 4.0.

guliash avatar Mar 15 '20 19:03 guliash