Megatest

View Ticket
Login
Ticket Hash: 181ee0a58191aa694f1c164130643b54fc93e5b0
Title: megatest -list-runs should allow listing tests without steps if specifying fields
Status: Open Type: Feature_Request
Severity: Minor Priority:
Subsystem: Resolution:
Last Modified: 2022-04-28 11:23:49
Version Found In: 1.65/91
Description:
If i run: megatest -list-runs % -target % -fields tests:test_name,item_path

I expect to see only run and test info, not step info

When specifying -fields, step info should only be displayed when steps or +steps is specified.

The desired behavior is consistent with specifying run info in the fields - test info is suppressed then unless tests are specified

# shows runs, tests, and steps

-fields runs:runname+tests:test_name+steps:step_name

# shows runs and tests, no steps:

-fields runs:runname+tests:test_name+item_path

For script automation around -list-runs, it would also be nice if the test output looked like:

Test: cv item_path: c/lpp

Rather than:

Test: cv(c/lpp)

If it needs to be handled with a different dumpmode, that is ok too