Repository navigation
Conversation
On branch Doug8080-skip
Changes to be committed:
modified: src/robot/errors.py
modified: src/robot/htmldata/rebot/common.css
modified: src/robot/htmldata/rebot/model.js
modified: src/robot/htmldata/rebot/view.js
modified: src/robot/libraries/BuiltIn.py
modified: src/robot/model/stats.py
modified: src/robot/model/totalstatistics.py
modified: src/robot/output/console/highlighting.py
modified: src/robot/reporting/jsmodelbuilders.py
modified: src/robot/result/testcase.py
modified: src/robot/result/testsuite.py
modified: src/robot/running/keywordrunner.py
modified: src/robot/running/runner.py
modified: src/robot/running/status.py
modified: src/robot/running/userkeyword.py
|
I would like to reference the discussion taking place at: The changes I would like to proposed in this pull request are to add support for skipping testcases I have fixed up all the unit tests (under the utest directory), they all pass successfully, e.g. I have also update the source code documentation for the I have created 5 example/demo testcase files to demonstrate the use of the ‘ Example/demo Testcase Files: TEST_SKIP_STATIC_TAG.txt TEST_SKIP_DYNAMIC_TAG.txt TEST_PASS.txt TEST_FAIL.txt Issues Issue 1: Issue 2: Issue 3: If you or anyone on the robot developers team can help me with this then I’ll do all I can to Regards, Testing Results TEST: Skip Test Non Critical TEST: Skip & Pass Tests Non Critical TEST: Skip Static Tag Test Non Critical TEST: Skip Static Tag & Pass Test Non Critical TEST: Skip Dynamic Tag Test Non Critical TEST: Skip Dynamic Tag & Pass Test Non Critical TEST: Pass Test Non Critical TEST: Fail Test Non Critical TEST: All Tests Non Critical TEST: Skip Test Critical TEST: Skip & Pass Tests Critical TEST: Skip Static Tag Test Critical TEST: Skip Static Tag & Pass Test Critical TEST: Skip Dynamic Tag Test Critical TEST: Skip Dynamic Tag & Pass Test Critical TEST: Pass Test Critical TEST: Fail Test Critical TEST: All Tests Critical |
…P_ON_FAILURE on exceptions to mark tests skipped. Updated unit tests and documentation files.
|
Added support for CLI option |
There was a problem hiding this comment.
How is skipping different than excluding in this context?
There was a problem hiding this comment.
First off, sorry Pekkaklarck for taking so long to get back to you on this, things have been hectic at work of late.
My implementation of --tagstatskip is exactly the same as --tagstatexclude.
With reference to your comment on 16th Oct #2087
"If skipping is supported, I think it should also be supported based on tags e.g. like --skip mytag. Tests having skipped tags shouldn't be executed at all, and a dynamically added skip tag should mark test skipped afterwards. In practice --skip would work like --exclude but tests would be shown in statistics."
My understanding of the robot source is limited and I could not see exactly how to implement
what you were asking for in your comment. So Implemented as much as I could in replicating
--tagstatexclude with --tagstatskip. I was hoping that you (or someone else in the robot
development could/would use what I have written as a basses for what you are asking for. I don't
understand the source enough to do this correctly I feel :(
There was a problem hiding this comment.
No worries about the delay. Paid work obviously has higher priority than open source contributions (unless you are paid for the latter).
I know implementing skipping correctly is not easy. The biggest problem I see with it is designing it so that it works consistently with existing --exclude/--include and --critical/--noncritical functionality. I hope you understand I'm not going to spend time with it unless someone pays me. Currently this isn't an important feature for any of my paying clients.
|
Doug, Is it possible for you to make an updated list on the known problems with the skip execution function? Thank you, |
|
There were quite many issues with the original PR. The biggest problem is not that much about the code but about how skipping should work in general compared to |
|
Would you be available to discuss this any time tomorrow? I live in Boston, MA so our time zones are a little off. I should be free around 10a.m. eastern if that works well for you. We can talk in IRC or slack, doesn’t matter to me. |
|
Tue won't work due to full day training and travel home afterwards. Would Wed be OK? I'm UTC+2. Let's use Slack if that's good for you. Should we use it also for agreeing the exact time? |
|
SKIP status was added in RF 4.0 (#3622). This PR is thus outdated. |














On branch Doug8080-skip
Changes to be committed:
modified: src/robot/errors.py
modified: src/robot/htmldata/rebot/common.css
modified: src/robot/htmldata/rebot/model.js
modified: src/robot/htmldata/rebot/view.js
modified: src/robot/libraries/BuiltIn.py
modified: src/robot/model/stats.py
modified: src/robot/model/totalstatistics.py
modified: src/robot/output/console/highlighting.py
modified: src/robot/reporting/jsmodelbuilders.py
modified: src/robot/result/testcase.py
modified: src/robot/result/testsuite.py
modified: src/robot/running/keywordrunner.py
modified: src/robot/running/runner.py
modified: src/robot/running/status.py
modified: src/robot/running/userkeyword.py