lib/pdk/report/event.rb
def to_junit
        testcase = REXML::Element.new('testcase')
        testcase.attributes['classname'] = [source, test].compact.join('.')
        testcase.attributes['name'] = [file, line, column].compact.join(':')
        testcase.attributes['time'] = 0

        if failure?
          failure = REXML::Element.new('failure')
          failure.attributes['type'] = severity
          failure.attributes['message'] = message
          failure.text = to_text
          testcase.elements << failure
        elsif skipped?
          testcase.add_element('skipped')
        end

        testcase
      end
# Renders the event as a JUnit XML testcase.
#
# @return [REXML::Element] The rendered event.
Renders the event as a JUnit XML testcase.
Renders the event as a JUnit XML testcase .
def to_junit
        testcase = REXML::Element.new('testcase')
        testcase.attributes['classname'] = [source, test].compact.join('.')
        testcase.attributes['name'] = [file, line, column].compact.join(':')
        testcase.attributes['time'] = 0
        if failure?
          failure = REXML::Element.new('failure')
          failure.attributes['type'] = severity
          failure.attributes['message'] = message
          failure.text = to_text
          testcase.elements << failure
        elsif skipped?
          testcase.add_element('skipped')
        end
        testcase
      end
def to_junit testcase = REXML :: Element . new ( 'testcase' ) testcase . attributes [ 'classname' ] = [ source , test ] . compact . join ( '.' ) testcase . attributes [ 'name' ] = [ file , line , column ] . compact . join ( ':' ) testcase . attributes [ 'time' ] = 0 if failure? failure = REXML :: Element . new ( 'failure' ) failure . attributes [ 'type' ] = severity failure . attributes [ 'message' ] = message failure . text = to_text testcase . elements << failure elsif skipped? testcase . add_element ( 'skipped' ) end testcase end
Renders the event as a JUnit XML testcase.
Renders the event as a JUnit XML testcase .
The rendered event.
The rendered event .
REXML::Element