-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
singleInstrumentationCall error #13
Comments
@hram This is currently supported: gradle-spoon-plugin/src/test/groovy/com/jaredsburrows/spoon/SpoonPluginSpec.groovy Line 67 in 7030f27
|
@jaredsburrows pardon for my english I think this is spoon problem, but maybe you can help me? |
I see. I believe this is another limitation by Spoon 2. Have you tried using the |
Any update on this? |
In my test project https://github.com/hram/TestSpoonWeblate I have 3 tests:
if I setup spoon like this
as a result spoon runs all 3 tests |
I'm also seeing this issue, where setting the parameter "singleInstrumentationCall = true" doesn't shard the tests across devices and instead runs all tests on all devices. Looking into the logging from running this, it appears that the correct command runs to start with: 11:03:30 I/RemoteAndroidTest: Running am instrument -w -r -e shardIndex 1 -e numShards 2 -e log true uk.co.fakedomain.myapp.test/uk.co.fakedomain.myapp.espresso.TestAndroidJUnitRunner on Nexus_4_API_23_Swiftshader_1_64bit [emulator-5554] however, shortly after it runs another command gets run which is breaking the sharding: 2018-01-30 11:03:31 [SDR.run] Ignored tests: [] as there are no shard options specified. Presumably this section was added for when running multiple instrumention calls, because in such case the commands in the second block include the '-e class' parameter so this issue doesn't present itself. |
I've just noticed that perhaps this is an issue with the underlying spoon library: square/spoon#509 |
@hram I will fix the "testsize". |
@moodytux I hope that fixes the issue soon! |
|
I'v test project with this spoon config
and I run tests by this command
In 'hram.testspoon.package1' I'v 2 classes with 1 test in each
The problem is that after 2 tests succes run in junit report I'v only one last test
After issues search I'm added parametr singleInstrumentationCall and spoon config like this
But in this case 'package' parameter is ignored and runs all tests in project
And good news is that junit report have all tests )
How can I fix that?
The text was updated successfully, but these errors were encountered: