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

Error "No test were found" when running tests from a package that contains other packages #606

Closed
yaroslav-shlapak opened this issue Feb 4, 2019 · 8 comments
Labels
Milestone

Comments

@yaroslav-shlapak
Copy link

Environment:
Android Studio 3.3Build #AI-182.5107.16.33.5199772, built on December 25, 2018
Spek plugin versoin: 2.0.0-Studio3.3
spekVersion = "2.0.0"

Prerequirements:
a package that contains other packages with unit tests.

Steps to reproduce

  1. Right click on a package-> Run 'Tests in '[package_name]''
  2. "Instantiating tests... " is displayed in the Run tab
  3. "No test were found" is displayed in the Run tab

Also, the first step works only from the second attempt, so after the first attempt nothing happens - test suite is not launched.
Generally, the bug behavior is similar to #543

@raniejade
Copy link
Member

raniejade commented Feb 4, 2019

Can you share a sample project that can reproduce the issue consistently?

@raniejade
Copy link
Member

I've got a fix locally, just waiting for #621 to finish building so I can merge it.

@yaroslav-shlapak
Copy link
Author

This bug is not fixed, instead of "No test were found" I get "Test framework is quit unexpectedly"

@raniejade
Copy link
Member

Can you give the spek version and plugin version you are using?

@yaroslav-shlapak
Copy link
Author

Spek version: 2.0.1
Spek plugin version: 2.0.1-Studio3.3
AS: 3.3.1 and 3.3.2
I'm also getting "No test were found" when trying to run all tests for the entire module using Junit runner

@yaroslav-shlapak
Copy link
Author

And sometimes nothing happens when I press play button near the test in the AS editor

@raniejade
Copy link
Member

Weird, can you share a sample project that replicates your issue?

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

No branches or pull requests

2 participants