-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing YAML blocks in the output #30
Comments
Hello, I have the same issue, messages are ignored. Example: Input TAP file (version 13):
Output:
|
Hello all, I guess github didn't want to notify me of this, or it was when I went on my small hiatus and the notification expired. Fear not, for I shall look into this, my only fear is that it may be a problem with the parser I am using as a dependency, so we shall see. Edit: So... That's interesting! It may be time to find a new tap parser possibly switching to tap-parser, which is built by the tape team and I like tape... Or build my own, which I am unsure if I want to do. Edit 2: The structure of the junit xml becomes: <testsuites tests="2" name="Tap-Junit" failures="2" errors="0">
<testcase name="#1 test is equal"/>
<testcase name="#2 test skip extra # SKIP">
<skipped/>
</testcase>
<testcase name="#3 should not be equal"/>
<testcase name="#4 should be equal"/>
</testsuites> Instead of <testsuites tests="4" name="suite-name" failures="0" errors="0">
<testsuite tests="3" failures="0" errors="0" name="1 === 1">
<testcase name="#1 test is equal"/>
<testcase name="#2 test skip extra # SKIP">
<skipped/>
</testcase>
<testcase name="#3 should not be equal"/>
</testsuite>
<testsuite tests="1" failures="0" errors="0" name="2 === 2">
<testcase name="#4 should be equal"/>
</testsuite>
<testsuite tests="0" failures="0" errors="0" name="SKIP skipped test"/>
</testsuites> Which I am currently unsure if this breaks standard junit practice as I've fallen out of familiarity with the tool |
Hello @dhershman1, I didn't get notification about your mention. Thanks for the work on this issue ! It solves the issue for several situations but not all. Here an example using the new version bash-5.0# cat super-linter-PYTHON_PYLINT.tap
TAP version 13
1..13
ok 1 - /mnt/manage.py
ok 2 - /mnt/grid/grid.py
ok 3 - /mnt/grid/views.py
ok 4 - /mnt/grid/models.py
ok 5 - /mnt/grid/utils.py
ok 6 - /mnt/grid/__init__.py
ok 7 - /mnt/grid/settings.py
ok 8 - /mnt/tests/unit/test_grid.py
not ok 9 - /mnt/tests/functional/test_api.py
---
message: ************* Module test_api\ntests/functional/test_api.py 12 19 E0602 Undefined variable 'app' (undefined-variable)\ntests/functional/test_api.py 18 12 E0602 Undefined variable 'db' (undefined-variable)\ntests/functional/test_api.py 24 12 E0602 Undefined variable 'db' (undefined-variable)\ntests/functional/test_api.py 25 12 E0602 Undefined variable 'db' (undefined-variable)\ntests/functional/test_api.py 43 25 E0602 Undefined variable 'json' (undefined-variable)\n
...
ok 10 - /mnt/migrations/env.py
ok 11 - /mnt/migrations/versions/c80a72291fce_.py
ok 12 - /mnt/migrations/versions/461d24fd37a8_.py
ok 13 - /mnt/run.py
bash-5.0#
bash-5.0#
bash-5.0# cat super-linter-PYTHON_PYLINT.tap | tap-junit -p > /tmp/super-linter-PYTHON_PYLINT.xml
bash-5.0#
bash-5.0#
bash-5.0# cat /tmp/super-linter-PYTHON_PYLINT.xml
<?xml version="1.0"?>
<testsuites tests="13" name="Tap-Junit" failures="1">
<testsuite tests="13" skipped="0" failures="1">
<testcase name="/mnt/manage.py" id="1"/>
<testcase name="/mnt/grid/grid.py" id="2"/>
<testcase name="/mnt/grid/views.py" id="3"/>
<testcase name="/mnt/grid/models.py" id="4"/>
<testcase name="/mnt/grid/utils.py" id="5"/>
<testcase name="/mnt/grid/__init__.py" id="6"/>
<testcase name="/mnt/grid/settings.py" id="7"/>
<testcase name="/mnt/tests/unit/test_grid.py" id="8"/>
<testcase name="/mnt/tests/functional/test_api.py" id="9">
<failure message="" type="fail">
</failure>
</testcase>
<testcase name="/mnt/migrations/env.py" id="10"/>
<testcase name="/mnt/migrations/versions/c80a72291fce_.py" id="11"/>
<testcase name="/mnt/migrations/versions/461d24fd37a8_.py" id="12"/>
<testcase name="/mnt/run.py" id="13"/>
</testsuite>
</testsuites> |
I do some tests and the issues disappear when I remove |
@thomasboni I'm not sure if the asterisks are messing with the parser or not. I'd have to test that a bit |
Hello @dhershman1, I am not sure this is the right place to discuss this, but I would like to let you know how we are using your tool in our company: we provide a hub of open-source plug and play CI/CD jobs for Gitlab runner : https://R2Devops.io Your tool permit us to convert the |
Information included in YAML blocks of TAP 13 files, such as the first example on
https://testanything.org/tap-version-13-specification.html
are not contained in the converted file.
The text was updated successfully, but these errors were encountered: