newman icon indicating copy to clipboard operation
newman copied to clipboard

The junit report does not include skipped test information

Open brice opened this issue 1 year ago • 3 comments

  1. Newman Version (can be found via newman -v): 5.3.2

  2. OS details (type, version, and architecture): Windows

  3. Are you using Newman as a library, or via the CLI? CLI

  4. Did you encounter this recently, or has this bug always been there: always been there

  5. Expected behaviour: When a test is skipped, it should be displayed under the testcase element

  6. Command / script used to run Newman: newman run --reporters junit mycollection.js

  7. Sample collection, and auxiliary files (minus the sensitive details): mycollection.json

  8. Screenshots (if applicable): N/A

I want to know if there is a possibility to include skipped information under the testcase element in the junit report.

Here is a specification that include it https://llg.cubic.org/docs/junit/ I can do a PR if you want.

brice avatar Jan 19 '24 10:01 brice

Any update on this?

msn-financial-com avatar Dec 05 '24 08:12 msn-financial-com

@appurva21 Hi Appurva, Any update on this

msn-financial-com avatar Dec 10 '24 13:12 msn-financial-com

I ran into the same issue after adding some pm.test.skip calls.

@brice it looks like you already have what is neede for a PR for this in https://github.com/brice/newman-reporter-junitfull/commit/d211a1b52a2a038f601250ebee2b8f378f9391bd

Here's hoping this can get merged into the official newnam so we do not have to patch the docker image we use

jornh avatar Jan 08 '25 07:01 jornh