-
Notifications
You must be signed in to change notification settings - Fork 122
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
Support executing one test multiple times #1614
Comments
Could you paste reproducer please? I've tried
but resulting |
@lukaszachy |
Pardon my ignorance but where is the produced junit? https://artifacts.dev.testing-farm.io/7f36ff62-a883-4f2f-ba6b-215c840a47bb/work-rust-keylime-testsEeTL_a/ shows that 'report -h display' is run, not junit. Either way, tmt has problem to create correct multiple results for same test. But for some reason display (and junit) report correct number as far as I can tell. |
I am sorry, I have accidentally pasted wrong link for logs.. fixing now. |
I can't find dedicated issue for tmt's incomplete results.yaml so I'd use this one for it. We have to change that. |
This isn't problem for junit (and other report plugins). The issue is in what they are served (even though it is correct number of results in most cases it certainly isn't correct results) |
Modified reproducer:
This is produced junit.xml (from report -h junit):
But problem is when one reads results.yaml, only one results is there:
So if one regenerates report from saved rundir (
|
Summary from the hacking session and multihost discussion:
Example - identifier: /tests/area/feature/001
name: /tests/area/feature
summary: This is a test for this area
test: ./test.sh
path: /default-0/tests/tests/area/feature
id: af994876-1c68-49a7-90e8-c8d2b189189d
...
- identifier: /tests/area/feature/002
name: /tests/area/feature
summary: This is a test for this area
test: ./test.sh
path: /default-0/tests/tests/area/feature
id: af994876-1c68-49a7-90e8-c8d2b189189d
...
- identifier: /tests/area/feature/003
name: /tests/area/feature
summary: This is a test for this area
test: ./test.sh
path: /default-0/tests/tests/area/feature
id: af994876-1c68-49a7-90e8-c8d2b189189d
... Example - identifier: /tests/area/feature/01
name: /tests/area/feature
result: pass
duration: 00:00:00
log:
- data/test/output.txt
- identifier: /tests/area/feature/02
name: /tests/area/feature
result: pass
duration: 00:00:00
log:
- data/test/output.txt
- identifier: /tests/area/feature/03
name: /tests/area/feature
result: pass
duration: 00:00:00
log:
- data/test/output.txt Not sure about the name of the new |
- identifier: /tests/area/feature/01
name: /tests/area/feature
result: pass
duration: 00:00:00
log:
- data/test/output.txt
guest: # as an object? I like namespaces, guest_name and guest_role would look weird to me...
name: foo
role: client
# Any more fields? `guest` with the IP/hostname?
Right, |
Yes, serial-number wiki definition matches precisely. |
* drop `ResultData`, it's no longer needed and `Result` can handle all the work; * add `guest` key as proposed in [1]; * add schema for validation of (custom) `results.yaml`; * `execute` step saves `results.yaml` as a list of results rather than a mapping, to make allow one test being executed multiple times. See [2]. [1] #1614 (comment) [2] #1614
* drop `ResultData`, it's no longer needed and `Result` can handle all the work; * add `guest` key as proposed in [1]; * add schema for validation of (custom) `results.yaml`; * `execute` step saves `results.yaml` as a list of results rather than a mapping, to make allow one test being executed multiple times. See [2]. [1] #1614 (comment) [2] #1614
* drop `ResultData`, it's no longer needed and `Result` can handle all the work; * add `guest` key as proposed in [1]; * add schema for validation of (custom) `results.yaml`; * `execute` step saves `results.yaml` as a list of results rather than a mapping, to make allow one test being executed multiple times. See [2]. [1] #1614 (comment) [2] #1614
* drop `ResultData`, it's no longer needed and `Result` can handle all the work; * add `guest` key as proposed in [1]; * add schema for validation of (custom) `results.yaml`; * `execute` step saves `results.yaml` as a list of results rather than a mapping, to make allow one test being executed multiple times. See [2]. [1] #1614 (comment) [2] #1614
Submitted #1854 which turns |
* drop `ResultData`, it's no longer needed and `Result` can handle all the work; * add `guest` key as proposed in [1]; * add schema for validation of (custom) `results.yaml`; * `execute` step saves `results.yaml` as a list of results rather than a mapping, to make allow one test being executed multiple times. See [2]. [1] #1614 (comment) [2] #1614
* drop `ResultData`, it's no longer needed and `Result` can handle all the work; * add `guest` key as proposed in [1]; * add schema for validation of (custom) `results.yaml`; * `execute` step saves `results.yaml` as a list of results rather than a mapping, to make allow one test being executed multiple times. See [2]. [1] #1614 (comment) [2] #1614
* drop `ResultData`, it's no longer needed and `Result` can handle all the work; * add `guest` key as proposed in [1]; * add schema for validation of (custom) `results.yaml`; * `execute` step saves `results.yaml` as a list of results rather than a mapping, to make allow one test being executed multiple times. See [2]. [1] #1614 (comment) [2] #1614
* drop `ResultData`, it's no longer needed and `Result` can handle all the work; * add `guest` key as proposed in [1]; * add schema for validation of (custom) `results.yaml`; * `execute` step saves `results.yaml` as a list of results rather than a mapping, to make allow one test being executed multiple times. See [2]. [1] #1614 (comment) [2] #1614
* drop `ResultData`, it's no longer needed and `Result` can handle all the work; * add `guest` key as proposed in [1]; * add schema for validation of (custom) `results.yaml` (the schema is not applied yet); * `execute` step saves `results.yaml` as a list of results rather than a mapping, to make allow one test being executed multiple times. See [2]. [1] #1614 (comment) [2] #1614
* drop `ResultData`, it's no longer needed and `Result` can handle all the work; * add `guest` key as proposed in [1]; * add schema for validation of (custom) `results.yaml` (the schema is not applied yet); * `execute` step saves `results.yaml` as a list of results rather than a mapping, to make allow one test being executed multiple times. See [2]. [1] #1614 (comment) [2] #1614
I believe this issue can be closed now, as both |
Agreed, but let's add at least a basic test coverage checking that: #1965 |
When a test case is run multiple times in a test plan, the resulting junit will contain just a single
<testcase>
record with a consolidated log in<system-out>
element.Instead, separate
<testcase>
record should be created for each test case run.The following warning should be added to the documentation as part of the fixing pull request:
The text was updated successfully, but these errors were encountered: