Skip to content

Adds ignoring "--dryrun" to rebot to allow getting the report and log. - #535

Closed
HelioGuilherme66 wants to merge 4 commits into
robotframework:masterfrom
HelioGuilherme66:tests_improve
Closed

HelioGuilherme66 wants to merge 4 commits into
robotframework:masterfrom
HelioGuilherme66:tests_improve

Conversation

@HelioGuilherme66

Copy link
Copy Markdown
Member

Changes a flag to True to allow running unit tests in Fedora 22.

Comment thread test/run_tests.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all, list.remove raises ValueError, not TypeError, if the removed item doesn't exist. Secondly, it would be shorted and cleaner to use:

if '--dryrun' in args:
    args.remote('--dryrun')

@HelioGuilherme66

Copy link
Copy Markdown
Member Author

Please consider this small change of code in S2L acceptance test cases. I would like to run the tests with --dryrun and other combinations of robot parameters, and the verify the log and report.

@aaltat

aaltat commented Jul 5, 2016

Copy link
Copy Markdown
Contributor

Is this related to the #536 ?

@HelioGuilherme66

Copy link
Copy Markdown
Member Author

Yes it is. I did not remember to have the issue. But the conversation drifted into RF. This is a change only to S2L. (of course I can have this only in my fork, but it would be harmless if on master)

@aaltat

aaltat commented Jul 5, 2016

Copy link
Copy Markdown
Contributor

Should we open the original issue or a new one and could you explain why this is needed. And what is the problem you are trying to solve?

@aaltat

aaltat commented Dec 10, 2016

Copy link
Copy Markdown
Contributor

Can we close this issue?

GLMeece and others added 2 commits December 11, 2016 00:14
@HelioGuilherme66

Copy link
Copy Markdown
Member Author

Merged with master and is ready to be merged.

@pekkaklarck

Copy link
Copy Markdown
Member

You should not merge changes from master to your PRs unless changes actually affect your code. Merging creates totally unnecessary commit history.

@pekkaklarck

Copy link
Copy Markdown
Member

This would fit into the scope of PR #710, but I fail to see the benefits of the change. There are lot of tests that contain log level validations done by StatusChecker. All those would fail in the dry-run mode.

Could you @HelioGuilherme66 clarify your use cases for --dryrun? In general it would be better to first open an issue where we can discuss does a change make sense in the first place.

@HelioGuilherme66

Copy link
Copy Markdown
Member Author

I wanted to have --dryrun working to confirm that new acceptance tests were OK. I also would like to have the Report and Log generated for other experiments.
This PR is going to be closed, because argument parsing logic was changed.

@HelioGuilherme66
HelioGuilherme66 deleted the tests_improve branch December 21, 2016 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants