square / spoon

Distributing instrumentation tests to all your Androids.
https://square.github.io/spoon/
Apache License 2.0
2.7k stars 477 forks source link

HTML Report Customization #574

Closed cody1024d closed 3 years ago

cody1024d commented 4 years ago

Hey guys! This project is awesome. This is more of a feature request than a bug, but...

I was wondering if Report-Customization is on the roadmap at all? There is additional information that I'd like to add to the HTML report (such as a small test description perhaps), without bloating the test name with that information.

JakeWharton commented 4 years ago

There are currently no plans to enhance this tool. Your best bet is to fork it and add whatever you need yourself.

cody1024d commented 4 years ago

Sounds good. will do that as needed. Thanks for the quick reply @JakeWharton.

cody1024d commented 4 years ago

Sorry to necro this issue, I've got my use-case up and running, but have hit a snag, and wanted to see what you all thought about it.

I wanted the reporter to be able to interrogate an annotation on the running tests, but now that I understand it a bit better, I see that this is not possible out of the box, because the testAPK is simply run through the adb command (and thus none of it's classes are in Spoon's class path).

Some solutions I'm thinking of:

cody1024d commented 4 years ago

We're going to solve the above problem leveraging: Instrumentation.sendStatus

In case anyone comes to this in the future