www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D pull request test badge

reply "Brad Anderson" <eco gnuk.net> writes:
I threw together a little tool that outputs an image with 
autotester results.

https://dtestbadge.appspot.com/

You just paste the Markdown:

     ![Test Results](https://dtestbadge.appspot.com)

anywhere on the pull request's page and it'll show an image with 
the pull request's current test results. It uses HTTP referer to 
figure out which pull's tests to look up. Ideally this could be 
moved onto the actual autotester but then Brad would have to fuss 
around with getting SSL working (i.e. HTTP referer doesn't get 
set when transitioning between SSL sites like GitHub to non-SSL 
sites).

The goal is to make easy access to test results inline with the 
pull requests themselves.  The greasemonkey script does this job 
wonderfully and with more information but not everyone uses it. 
This would work for everyone.

I've added one of these badges in a comment to test on this pull 
request if you want to see what it looks like: 
https://github.com/D-Programming-Language/phobos/pull/645#issuecomment-6597823

You can also just do direct links like so: 
https://dtestbadge.appspot.com/phobos/645.png

Regards,
Brad Anderson
Jun 27 2012
next sibling parent "Bernard Helyer" <b.helyer gmail.com> writes:
My god that's sexy.
Jun 27 2012
prev sibling next sibling parent Dmitry Olshansky <dmitry.olsh gmail.com> writes:
On 27-Jun-12 12:54, Brad Anderson wrote:
 The goal is to make easy access to test results inline with the pull
 requests themselves.  The greasemonkey script does this job wonderfully
 and with more information but not everyone uses it. This would work for
 everyone.

 I've added one of these badges in a comment to test on this pull request
 if you want to see what it looks like:
 https://github.com/D-Programming-Language/phobos/pull/645#issuecomment-6597823
I definitely like it. -- Dmitry Olshansky
Jun 27 2012
prev sibling parent "Brad Anderson" <eco gnuk.net> writes:
On Wednesday, 27 June 2012 at 08:54:31 UTC, Brad Anderson wrote:
 I threw together a little tool that outputs an image with 
 autotester results.

 https://dtestbadge.appspot.com/

 You just paste the Markdown:

     ![Test Results](https://dtestbadge.appspot.com)

 anywhere on the pull request's page and it'll show an image 
 with the pull request's current test results. It uses HTTP 
 referer to figure out which pull's tests to look up. Ideally 
 this could be moved onto the actual autotester but then Brad 
 would have to fuss around with getting SSL working (i.e. HTTP 
 referer doesn't get set when transitioning between SSL sites 
 like GitHub to non-SSL sites).

 The goal is to make easy access to test results inline with the 
 pull requests themselves.  The greasemonkey script does this 
 job wonderfully and with more information but not everyone uses 
 it. This would work for everyone.

 I've added one of these badges in a comment to test on this 
 pull request if you want to see what it looks like: 
 https://github.com/D-Programming-Language/phobos/pull/645#issuecomment-6597823

 You can also just do direct links like so: 
 https://dtestbadge.appspot.com/phobos/645.png

 Regards,
 Brad Anderson
The source code if anyone is curious: https://github.com/eco/dtestbadge It's pretty trivial though.
Jun 27 2012