These are chat archives for Arasthel/SwissKnife

23rd
Jun 2015
Andrew Reitz
@pieces029
Jun 23 2015 13:56
@Arasthel Would you prefer to talk in here over twitter?
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 14:09
Sorry, I was away from PC
./gradlew cAT fails to find any tests
No tests found. This usually means that your test classes are not in the form that your test runner expects (e.g. don't inherit from TestCase or lack @Test annotations).
Andrew Reitz
@pieces029
Jun 23 2015 14:40
Is your code up anywhere, this is a stupid problem that comes up all the time. Sometimes it's a dex issue, sometimes it's progaurd, sometimes it just doesn't work...
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 14:41
I could upload it to a different branch on SK repo
I wanted to do some testing for @Parcelable annotation, as it's giving me some problems
It seems to work fine now, but I want to be sure before I actually release anything
Andrew Reitz
@pieces029
Jun 23 2015 14:43
forsure.
The @Test thing isn't just spock, I've actually only ever gotten the regular Junit 4 stuff working once...
There is one weird bug where you can't have anonymous classes. That could be your problem
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 14:44
It should be up on spocktests branch
That could be the problem, yes
But do you mean on all your code or only on the tests?
Andrew Reitz
@pieces029
Jun 23 2015 14:47
only in tests
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 14:47
Then it shouldn't be a problem
Andrew Reitz
@pieces029
Jun 23 2015 14:48
I think you are missing the testing-support-lib:0.1
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 14:48
It gave me some dex errors
Andrew Reitz
@pieces029
Jun 23 2015 14:49
that's super weird that it doesn't fail saying it can't find testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 14:49
Apparently, FlakyTest is on that library and another one
And I think that other one must be your library
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 14:59
Actually, gradle dependencies doesn't show any library as duplicate :worried:
Andrew Reitz
@pieces029
Jun 23 2015 15:07
FlakyTest?
What dex errors?
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 15:07
Multiple dex files define Landroid/support/test/filters/FlakyTest;
Andrew Reitz
@pieces029
Jun 23 2015 15:08
the android plugin is such a shit show...
I'll check out that branch and see what I can do.
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 15:11
Ok, thanks :smile:
Andrew Reitz
@pieces029
Jun 23 2015 15:16
ok I see a few things that probably are messing with it.
1.0.0 was weird where you had to use my custom test runner, because of the way android looked for tests it would find random maven spock tests and try to execute them.
so I bumped to 1.2.1
Then groovy was included twice since compile includes it in all projects. Lets see if that clears it up.
Test failed to run to completion. Reason: 'Instrumentation run failed due to 'Native crash''. Check device logcat for details
well getting somewhere haha, I'm guessing that's because def parcel = new Parcel(1000) hits a private constructor.
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 15:18
Ok
Then I'll change that and try a few things in a couple of minutes. Thanks!
Andrew Reitz
@pieces029
Jun 23 2015 15:20
Condition not satisfied:

resultString != null
|            |
null         false

at com.arasthel.swissknife.annotations.ParcelableTestSpec.parcel String works(ParcelableTestSpec.groovy:23)
Andrew Reitz
@pieces029
Jun 23 2015 15:48

I can push my changes if you want

changes pushed https://github.com/Arasthel/SwissKnife/tree/spocktests

Jorge Martin Espinosa
@Arasthel
Jun 23 2015 16:11
Thanks
Andrew Reitz
@pieces029
Jun 23 2015 16:29
did ci ever get setup. I've been seriously neglecting my open source contributions.
It's summer though, need to get outside while I can!
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 16:29
CI was never setup
That was on my list, too
But yeah, it's time to go out and enjoy :)
Andrew Reitz
@pieces029
Jun 23 2015 16:38
I'm guessing you are in the US?
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 16:41
Not at all. In Spain.
An ocean away ;)
For some reason, Parcel is not working as it should on the test
Jorge Martin Espinosa
@Arasthel
Jun 23 2015 16:53
Actually, it seems to be working fine
Eugene Kamenev
@eugene-kamenev
Jun 23 2015 16:55
Great news guys, keep us posted