You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allowing rebot to process Report and Log for acceptance tests when using --dryrun #536
In a more global PR for robotframework, I plan to use the --dryrun option in rebot to be accepted and give relevant results.
For now this allows running the acceptance tests with the --dryrun option and obtain the Report and Log files.
In this PR, it is also changed to include_root_package_name = True in run_unit_tests.py which is critical for me in my Linux machine (and harmless in Windows).
My only explanation for the Travis build fail, is the Python versions
(being too picky with try/exception).
Now that I am writing this, I think I have also to catch ValueError.
Travis is using Python 2.6 and 2.7.6. My system has 2.7.10.
I have plans to expand --dryrun to obtain a list of test files,
resources, libraries, test cases names, and most important; all tag names.
This PR was done because rebot errors when using --dryrun, and does
not produce Report and Log. Log is helpful to see all the info I mentioned.
The include_root_package_name translates like a Namespace (I think),
and there are some tests found that would construct the correct path if
False.
(I am writing this by memory, later I will see if I fix the build, and show
error message see below the error)
EDIT: This is the output when include_root_package_name set to False
[helio@localhost test]$ python run_tests.py python firefox
Running unit tests
Traceback (most recent call last):
File "run_tests.py", line 110, in <module>
unit_failures = _run_unit_tests()
File "run_tests.py", line 99, in _run_unit_tests
failures = run_unit_tests()
File "/home/helio/robotframework-selenium2library/test/run_unit_tests.py", line 8, in run_unit_tests
env.UNIT_TEST_DIR, include_root_package_name = False, pattern="test*.py")
File "/home/helio/robotframework-selenium2library/test/../src/Selenium2Library/utils/__init__.py", line 43, in import_modules_under
for module_name in module_names ]
ImportError: No module named test_browsercache
Right now it would just be fine if ignores the option and proceed with Report and Log.
Future improvements, would represent a complete table with all tags found in tests (possibly using color styling), some tree of the test suites (file paths), etc. Info that we usually don't need or want in a Log, but we need to prepare a test run.
(In this S2L case, I would like to know which Test Suites are to avoid in Jython, for example)
There has not been activity for this issue for long time and we are planning to close the old issues if they are not anymore valid ones. If you feel that this is still valid issue, could you send an update. If update is not received in a month, we will assume that this is not anymore an issues and we will close this issue.
Activity
aaltat commentedon Nov 17, 2015
PR did broke the Travis integration, so at least that should be fixed.
But could you explain why you need the dryrun option available in the S2L acceptance test runner?
I don't recall what the
include_root_package_nameactually does. Does someone remember what it does and why we have it?HelioGuilherme66 commentedon Nov 17, 2015
My only explanation for the Travis build fail, is the Python versions
(being too picky with try/exception).
Now that I am writing this, I think I have also to catch ValueError.
Travis is using Python 2.6 and 2.7.6. My system has 2.7.10.
I have plans to expand
--dryrunto obtain a list of test files,resources, libraries, test cases names, and most important; all tag names.
This PR was done because rebot errors when using
--dryrun, and doesnot produce Report and Log. Log is helpful to see all the info I mentioned.
The
include_root_package_nametranslates like a Namespace (I think),and there are some tests found that would construct the correct path if
False.
(I am writing this by memory, later I will see if I fix the build,
and showsee below the error)error message
On Tue, Nov 17, 2015 at 3:57 PM, Tatu Aalto notifications@github.com
wrote:
EDIT: This is the output when
include_root_package_nameset to Falsepekkaklarck commentedon Nov 17, 2015
How should
--dryrunwork with Rebot?HelioGuilherme66 commentedon Nov 17, 2015
Right now it would just be fine if ignores the option and proceed with Report and Log.
Future improvements, would represent a complete table with all tags found in tests (possibly using color styling), some tree of the test suites (file paths), etc. Info that we usually don't need or want in a Log, but we need to prepare a test run.
(In this S2L case, I would like to know which Test Suites are to avoid in Jython, for example)
pekkaklarck commentedon Nov 17, 2015
Discussing about possible RF enhancements in S2L tracker is off-topic, but quick comments anyway:
--dryrunoption to enable that would be weird.aaltat commentedon Nov 23, 2015
What we should do with this pull request?
aaltat commentedon May 23, 2016
There has not been activity for this issue for long time and we are planning to close the old issues if they are not anymore valid ones. If you feel that this is still valid issue, could you send an update. If update is not received in a month, we will assume that this is not anymore an issues and we will close this issue.