Giter Site home page Giter Site logo

Comments (6)

FreHu avatar FreHu commented on August 30, 2024 1

It works! Thanks.

image

image

from sapcli.

FreHu avatar FreHu commented on August 30, 2024

It seems that <system-x output is not shown in the results, only the message.

  <testsuite name="LCL_TESTS" package="CL_IFME_CHECK_NODE_VAR_LEN_01" tests="3">
    <testcase name="EXECUTE_FAIL" classname="LCL_TESTS" status="OK"/>
    <testcase name="EXECUTE_OK" classname="LCL_TESTS" status="OK"/>
    <testcase name="EXECUTE_OK_2" classname="LCL_TESTS" status="ERR">
      <error type="failedAssertion" message="Critical Assertion Error: 'Execute_Ok_2: ASSERT_EQUALS'">
        <system-out>Different Values:</system-out>
        <system-out>Expected [0] Actual [1]</system-out>
        <system-out>Test 'LCL_TESTS-&gt;EXECUTE_OK_2' in Main Program 'CL_IFME_CHECK_NODE_VAR_LEN_01=CP'.</system-out>
        <system-err>Include: &lt;CL_IFME_TEST_BASE=============CM00I&gt; Line: &lt;2&gt; (ASSERT_EQUALS)</system-err>
        <system-err>Include: &lt;CL_IFME_CHECK_NODE_VAR_LEN_01=CCAU&gt; Line: &lt;63&gt; (EXECUTE_OK_2)</system-err>
      </error>
    </testcase>
  </testsuite>

from sapcli.

jfilak avatar jfilak commented on August 30, 2024

Hmm, human format should contain everything:
https://github.com/jfilak/sapcli/blob/master/sap/cli/aunit.py#L54

The Junit format is described here:
https://github.com/jfilak/sapcli/blob/master/doc/aunit.md#junit

Feel free to open a PR:
https://github.com/jfilak/sapcli/blob/master/sap/cli/aunit.py#L67

but I would first ask the authors of your Jenkins plugin how they want expect their plugin to be used.

from sapcli.

jfilak avatar jfilak commented on August 30, 2024

Oh dear, the output should look like this:

<testsuite name="LCL_TESTS" package="CL_IFME_CHECK_NODE_VAR_LEN_01" tests="3">
    <testcase name="EXECUTE_FAIL" classname="LCL_TESTS" status="OK"/>
    <testcase name="EXECUTE_OK" classname="LCL_TESTS" status="OK"/>
    <testcase name="EXECUTE_OK_2" classname="LCL_TESTS" status="ERR">
      <system-err>
Different Values:
Expected [0] Actual [1]
Test 'LCL_TESTS-&gt;EXECUTE_OK_2' in Main Program 'CL_IFME_CHECK_NODE_VAR_LEN_01=CP'.
      </system-err>
      <error type="failedAssertion" message="Critical Assertion Error: 'Execute_Ok_2: ASSERT_EQUALS'">
Include: &lt;CL_IFME_TEST_BASE=============CM00I&gt; Line: &lt;2&gt; (ASSERT_EQUALS)
Include: &lt;CL_IFME_CHECK_NODE_VAR_LEN_01=CCAU&gt; Line: &lt;63&gt; (EXECUTE_OK_2)
      </error>
    </testcase>
  </testsuite>

from sapcli.

jfilak avatar jfilak commented on August 30, 2024

I will try to fix it as soon as possible.

from sapcli.

jfilak avatar jfilak commented on August 30, 2024

Try sapcli from the branch fix_aunit_junit_stacktrace and let me know how it works.

from sapcli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.