Comments (6)
It works! Thanks.
from sapcli.
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->EXECUTE_OK_2' in Main Program 'CL_IFME_CHECK_NODE_VAR_LEN_01=CP'.</system-out>
<system-err>Include: <CL_IFME_TEST_BASE=============CM00I> Line: <2> (ASSERT_EQUALS)</system-err>
<system-err>Include: <CL_IFME_CHECK_NODE_VAR_LEN_01=CCAU> Line: <63> (EXECUTE_OK_2)</system-err>
</error>
</testcase>
</testsuite>
from sapcli.
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.
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->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: <CL_IFME_TEST_BASE=============CM00I> Line: <2> (ASSERT_EQUALS)
Include: <CL_IFME_CHECK_NODE_VAR_LEN_01=CCAU> Line: <63> (EXECUTE_OK_2)
</error>
</testcase>
</testsuite>
from sapcli.
I will try to fix it as soon as possible.
from sapcli.
Try sapcli from the branch fix_aunit_junit_stacktrace and let me know how it works.
from sapcli.
Related Issues (20)
- Proper encoding of skipped AUNIT tests into junit results xml
- determine master program of includes somehow HOT 1
- aunit code coverage HOT 2
- aunit run transport does not resolve LIMU objects HOT 2
- No testable objects found should not result in an error return code HOT 2
- Provide aunit results in sonar generic execution format HOT 3
- rfc user must initialize some parameters
- gCTS configuration does not always contain "value"
- add gCTS polling on timeouts HOT 1
- package create - transport request HOT 3
- add abapgit repo settings Folder Logic
- aunit junit4 does not catch syntax errors in classes HOT 1
- CI doesn't work HOT 1
- ATC checks and aunit does not work on the include program. HOT 1
- migrate to public ADT ATC API
- parse server errors reported in HTML HOT 2
- encode bytes to base64 in startrfc HOT 1
- 'gcts repo property get' should use list instead of table HOT 1
- ATC - ERROR_LEVEL is not working HOT 5
- potential issues in gcts activities
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sapcli.