Python (nose) Test Coverage on Buildbot

Once we got our builds happily running on Buildbot, there’s really no reason not to add coverage since it’s so easy (especially if you get bragging rights over your non-TDDers teammates).

All you have to do is this (code is based on this blog post, with adaptations to work on slaves that don’t share directories with the master, since the createSummary method runs on the master):

  1. Nikunj says:

    Hi,
    I am a beginner and using buildbot to automate my build/execute process for libc.
    I wanted to use addURL() method for custom URLs at the build status page. I read the manual but couldnt understand it.!
    Please give me a simple example how to accomplish it.?
    Ex. If I do,
    {
    class Test(BuildStep):
    def createlink(self, log):
    url = “http://www.google.com”
    self.addURL(“coverage”, url)

    f1 = factory.BuildFactory()
    f1.addStep(shell.ShellCommand( blah blah ))
    }

    I want to use custom url for the above f1.addStep()
    Please guide !!

    Thanks,
    Nikunj

  2. Nikunj: AFAIK, “addURL” needs to be called from the “createSummary” method. Did you try it that way?

  1. There are no trackbacks for this post yet.

Leave a Reply