Giter Club home page Giter Club logo

Comments (13)

cbrammer avatar cbrammer commented on September 2, 2024

This would be really great. Any progress on this?

from spoon.

x2on avatar x2on commented on September 2, 2024

Im currently working on a basic gradle plugin.
https://github.com/x2on/gradle-spoon-plugin

from spoon.

roman-mazur avatar roman-mazur commented on September 2, 2024

@x2on I started developing my own version of the plugin few hours before your message here :)
It will be available at Maven Central in several hours.
https://github.com/stanfy/spoon-gradle-plugin

from spoon.

roman-mazur avatar roman-mazur commented on September 2, 2024

@JakeWharton could somebody from the Spoon team take a look at that plugin?

from spoon.

x2on avatar x2on commented on September 2, 2024

@roman-mazur thats funny - i just also refactored to use the android plugin. now i looked at your plugin, and we have almost the same idea ;) Perhaps we should work together on the plugin.

from spoon.

MariusVolkhart avatar MariusVolkhart commented on September 2, 2024

Much of the functionality of Spoon has been integrated into the instrumentTest task in the new build system.

Looking at both of the plugins, they both act as a wrapper for the SpoonRunner class. It'd be great if we could instead leverage the existing task. Besides reducing the need for a lot of the current spoon classes, it would integrate the reports with Gradle's report system better and allow for DeviceProviders to be used with Spoon.

I had a solution in mind, but don't know enough to implement it just yet.

It would "inject" an action into the instrumentTest task which would use adb to pull files off the device right before the uninstall happens. After the instrumentTest task, a custom task would execute which would generate the Spoon reports using customTask.mustRunAfter instrumentTest.

Thoughts?

PS. @roman-mazur @x2on thank you both for bringing this to gradle until there's a v2.0 release!

from spoon.

JakeWharton avatar JakeWharton commented on September 2, 2024

That sounds reasonable to me. My biggest fear is leaning on the inflexibility of the standard Gradle reports. We could always just produce a companion report to the real one with the additional data.

from spoon.

roman-mazur avatar roman-mazur commented on September 2, 2024

I definitely agree that tests should be run with android plugin. The only reason I've implemented our current plugin as a wrapper for spoon runner is that it took the shortest time.
Frankly speaking I do not believe we'll get better integration with Gradle reports. The last time I was looking at their reporting code, all the classes belonged to internal API and were not rather flexible...

from spoon.

JakeWharton avatar JakeWharton commented on September 2, 2024

Yeah I haven't had time to look deeply yet. It'll probably represent a fundamental shift in this tool, however.

from spoon.

roman-mazur avatar roman-mazur commented on September 2, 2024

A dramatical shift :)
We won't need to use ddmlib directly for running tests. At least for
gradle builds.
Will the maven plugin be deprecated?
On 20 Dec 2013 21:14, "Jake Wharton" [email protected] wrote:

Yeah I haven't had time to look deeply yet. It'll probably represent a
fundamental shift in this tool, however.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-31033988
.

from spoon.

edenman avatar edenman commented on September 2, 2024

Closing this out. https://github.com/stanfy/spoon-gradle-plugin is what we're using internally now.

from spoon.

roman-mazur avatar roman-mazur commented on September 2, 2024

But I would love to this revived for v2.

from spoon.

JakeWharton avatar JakeWharton commented on September 2, 2024

If there ever is a v2, it won't be anything at all like the current project.

from spoon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.