Set test comment from the calculation context

Issue #280 resolved
Marc Chamberland created an issue

It would be nice to be able to set a test comment from the calculation context. Something like:

lines =

See original posts here.

Comments (5)

  1. Ben Earner

    Just to add it would also be good to be able to read the comments as well as write to them (see the discussion here: #303 about use with 3rd party APIs or emails for example). In this way the comments could be passed to the API if required.

  2. Randle Taylor

    Resolved by 4a785ab. You can now use UTILS.set_comment and UTILS.get_comment in calculations like:

    foo = 1234*5678
    bar_comment = UTILS.get_comment("bar")  # where `bar` is variable name of another test
    UTILS.set_comment("hello from foo. bar comment is: %s" % bar_comment)  # set comment for `foo`
  3. Log in to comment