-
Notifications
You must be signed in to change notification settings - Fork 186
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 suffix for test classes when using suite. #467
Conversation
So the same test class can be run with different configs and reported differently in the same suite. Aliases are only possible in a suite as they are set when calling `add_test_class`.
Review status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @xpconanfan, @winterfroststrom, and @k2fong) tests/mobly/test_runner_test.py, line 292 at r1 (raw file):
I don't see a check for the base functionality, so add a new unit test or add asserts to test_run_two_test_classes Comments from Reviewable |
Review status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @xpconanfan, @winterfroststrom, and @k2fong) tests/mobly/test_runner_test.py, line 292 at r1 (raw file): Previously, winterfroststrom wrote…
what is the "base functionality"? Comments from Reviewable |
Review status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @winterfroststrom and @k2fong) tests/mobly/test_runner_test.py, line 292 at r1 (raw file): Previously, xpconanfan (Ang Li) wrote…
that the tag is set to the class name? Comments from Reviewable |
Review status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @winterfroststrom and @k2fong) tests/mobly/test_runner_test.py, line 292 at r1 (raw file): Previously, winterfroststrom wrote…
err, I should say that the record.test_class is the class name Comments from Reviewable |
Review status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @xpconanfan, @winterfroststrom, and @k2fong) tests/mobly/test_runner_test.py, line 292 at r1 (raw file): Previously, winterfroststrom wrote…
isn't that what this assert equal checks? Comments from Reviewable |
Review status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @winterfroststrom and @k2fong) tests/mobly/test_runner_test.py, line 292 at r1 (raw file): Previously, xpconanfan (Ang Li) wrote…
This assert checks that you can change the default functionality to set a custom class alias, it does not check that the original class name is as expected Comments from Reviewable |
Review status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @xpconanfan, @winterfroststrom, and @k2fong) tests/mobly/test_runner_test.py, line 293 at r1 (raw file):
Will the original test class name be preserve somewhere in the output? or will it just be the alias if specified? Comments from Reviewable |
Review status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @xpconanfan, @winterfroststrom, and @k2fong) tests/mobly/test_runner_test.py, line 293 at r1 (raw file): Previously, k2fong wrote…
Just the alias. It changes how the class is referred to. Comments from Reviewable |
Review status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @winterfroststrom and @k2fong) tests/mobly/test_runner_test.py, line 292 at r1 (raw file): Previously, winterfroststrom wrote…
Done. Comments from Reviewable |
Review status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @k2fong) Comments from Reviewable |
Review status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @k2fong and @xpconanfan) tests/mobly/test_runner_test.py, line 266 at r2 (raw file):
Wait, actually this check seems wrong Additionally, Integration2Test is added first Comments from Reviewable |
Review status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @k2fong and @xpconanfan) tests/mobly/test_runner_test.py, line 293 at r1 (raw file): Previously, xpconanfan (Ang Li) wrote…
Will it make sense to preserve the original class name and append (or some reader friendly way) the extra string from the user to differentiate the different tests instead of replacing? Comments from Reviewable |
Review status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @xpconanfan and @k2fong) tests/mobly/test_runner_test.py, line 293 at r1 (raw file): Previously, k2fong wrote…
It sounds good, but I can't think of a use case. Comments from Reviewable |
Review status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @k2fong and @xpconanfan) tests/mobly/test_runner_test.py, line 293 at r1 (raw file): Previously, xpconanfan (Ang Li) wrote…
The use case will be same as this pull request. On a different system I have seem them do this IntegrationTest [FirstConfig] user can pass in what goes into the bracket. If there might be worry about adding field, couldn't the new appended name just replace the default just like you have done for alias? Comments from Reviewable |
Review status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @xpconanfan and @k2fong) tests/mobly/test_runner_test.py, line 293 at r1 (raw file): Previously, k2fong wrote…
why is it better for mobly to do this rather than the user? Comments from Reviewable |
Review status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @xpconanfan and @k2fong) tests/mobly/test_runner_test.py, line 293 at r1 (raw file): Previously, winterfroststrom wrote…
agree, user can do it them self, but having mobly do this can enforce some consistency across all users. Comments from Reviewable |
Review status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @xpconanfan and @k2fong) tests/mobly/test_runner_test.py, line 293 at r1 (raw file): Previously, k2fong wrote…
Hmm, there's question is what the consistency buys us. If we ever want to add some analysis/report generation stuff for example, I think I could go either way on this. Comments from Reviewable |
Only suffix is allowed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @k2fong)
tests/mobly/test_runner_test.py, line 293 at r1 (raw file):
Previously, winterfroststrom wrote…
Hmm, there's question is what the consistency buys us.
If we ever want to add some analysis/report generation stuff for example,
then consistency could be helpful as it can establiss invariants/assumptions.I think I could go either way on this.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @k2fong)
So the same test class can be run with different configs and reported differently in the same suite.
Aliases are only possible in a suite as they are set when calling
add_test_class
.This change is