Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-308

Improve feedback for failing unit tests

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 3.0.11, 4.0.0
    • 3.0.3
    • Contrib
    • None

    Description

      It is often hard to identify why unit tests have failed when a rule fails to inject. Thsi can be improved in two ways:

      when running Byteman intermal unit tests enable verbose trace

      this will make injection failures or exceptions during parsing, type checking or execution visible to whoever is running the test

      for any BMUnit test invoke the agent listener LIST functionality if the test fails

      this must be done just before unloading of rules commences. it will also show the injection status of the rules, including any parse or type check errors

      A further improvement is to have TransformListener.transform() dump a stack trace when a rule fails to inject correctly. This probably needs to be done at a finer level of trace than verbose so depends upon completion of BYTEMAN-294

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhn-engineering-adinn Andrew Dinn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: