Closed GoogleCodeExporter closed 9 years ago
Postponing to the next alpha, so that we can release a small bugfix before
(Issue 23).
Original comment by hugo.josefson.old@gmail.com
on 21 Jun 2009 at 10:51
This Issue 24 is still there in 2.0.0-alpha5.
Original comment by hugo.josefson.old@gmail.com
on 21 Jun 2009 at 11:23
An idea:
Change both:
<packaging>android:apk</packaging>
<packaging>android:apk:platformTest</packaging>
to:
<packaging>apk</packaging>
Introduce optional plugin config parameter:
<platformtest>true/false/auto</platformtest>
default => auto
true:
run the integration-test phase, just as <packaging>android:apk:platformTest</packaging> did.
false:
don't run the integration-test phase, just as <packaging>android:apk</packaging> didn't.
auto:
based on if there are any test classes in the main sources (usually /src/main/java). Test classes for this purpose should be considered anything inheriting
junit.framework.Test.
Original comment by hugo.josefson.old@gmail.com
on 21 Jun 2009 at 11:33
We can probably autodetect test classes with ASM.
See section 2.2.2 of the ASM User Guide:
http://download.forge.objectweb.org/asm/asm-guide.pdf
Since the plugin will have all project dependencies (for example the
android.jar
which includes junit.framework.*) on its classpath (will it?) when running in a
project, we should be able to figure these things out.
ASM homepage:
http://asm.ow2.org/
Original comment by hugo.josefson.old@gmail.com
on 21 Jun 2009 at 2:47
Yes, that worked. Fixed in my local fix-branch. Deployed 2.0.0-alpha6-SNAPSHOT.
This results in a major change in how poms are defined. It is however necessary
for fixing this issue. Can't be done without changing the <packaging> to
something
without ":", so it's best to do it all at once now while we're still in alpha.
<packaging>apk</packaging> also makes more sense, especially when comparing to
other packaging types such as jar, war and so on...
The change is that all Android application poms and all Android platformTest
poms will have to have <packaging>apk</packaging> instead of the separate
<packaging>android:apk</packaging> and
<packaging>android:apk:platformTest</packaging> which they've had before. Also,
of course, if the platformTest pom has a
dependency to another apk, that <dependency> will now have to be
<type>apk</type> instead of <type>android:apk</type>.
Will release tomorrow.
Original comment by hugo.josefson.old@gmail.com
on 21 Jun 2009 at 8:22
I'll wait one more day until releasing the next alpha. I want to verify this
fix with a project at work
tomorrow first.
Original comment by hugo.josefson.old@gmail.com
on 22 Jun 2009 at 2:51
Released 2.0.0-alpha6.
Original comment by hugo.josefson.old@gmail.com
on 23 Jun 2009 at 9:02
Original comment by hugo.josefson.old@gmail.com
on 24 Jun 2009 at 1:55
Original issue reported on code.google.com by
hugo.josefson.old@gmail.com
on 21 Jun 2009 at 10:48