Skip to content
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

Optionally fail test if launch-file fails #132

Conversation

LoyVanBeek
Copy link
Contributor

If the launch-file in a FlexBE test fails, signal this to the TestContext that can then optionally fail due to this
This allows to run scripts etc to verify State/Behavior side effects

This is handy when combined with eg. https://github.com/ipa320/cob_command_tools/tree/indigo_dev/scenario_test_tools but simpler scripts as well of course.

Together, this implements

Check external effects in flexbe_testing, e.g. setting a rosparam or calling an action.

from #93

@LoyVanBeek LoyVanBeek force-pushed the feature/test_require_launch_file_success branch from 76881b6 to 235faf5 Compare October 26, 2020 12:59
@LoyVanBeek LoyVanBeek changed the base branch from master to develop October 26, 2020 14:48
@LoyVanBeek LoyVanBeek force-pushed the feature/test_require_launch_file_success branch 2 times, most recently from f6a4758 to 235faf5 Compare November 2, 2020 11:22
@LoyVanBeek LoyVanBeek changed the base branch from develop to master November 2, 2020 11:22
@LoyVanBeek
Copy link
Contributor Author

I've force-pushed this branch a couple of times, now back to target master. With develop I ran into #129

@pschillinger
Copy link
Member

Looks good to me and is definitely useful, thanks for adding!

Now that #129 should be fixed, do you think this can be merged to develop?

@LoyVanBeek
Copy link
Contributor Author

LoyVanBeek commented Nov 5, 2020

Yes, have verified again. I found a weird case where the process that would check the state's side-effects did not exit ever and thus never produced a result. That is fixed in my use-case, FlexBE did not need a change, so it's good to merge.

Should I rebase again on develop? Rebased on develop for a minimal diff

If the launch-file in a FlexBE test fails, signal this to the TestContext that can then optionally fail due to this
This allows to run scripts etc to verify State/Behavior side effects
And check they exit code to decide success/fail of launch file
@LoyVanBeek LoyVanBeek force-pushed the feature/test_require_launch_file_success branch from 47caf62 to d2cd790 Compare November 5, 2020 14:25
@LoyVanBeek LoyVanBeek changed the base branch from master to develop November 5, 2020 14:26
@pschillinger pschillinger merged commit 69e5242 into team-vigir:develop Nov 9, 2020
@LoyVanBeek LoyVanBeek deleted the feature/test_require_launch_file_success branch November 9, 2020 18:28
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.

None yet

2 participants