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

Provide language construct for "save some state, then do some stuff, then use that state as the input for a test" kind of testing #131

Open
S1artie opened this issue Dec 5, 2016 · 0 comments

Comments

@S1artie
Copy link
Member

S1artie commented Dec 5, 2016

When doing testing of asynchronous processes, one often has to work like in this pattern:

  • First, save some state (maybe a counter value)
  • Then trigger some async process which eventually changes the state in question (but which does not guarantee to do that during execution of the fixtures that triggered this process)
  • Then wait for the state change to happen (for example wait for the counter to increase further than the original value stored earlier)

You can explicitly code this in Integrity already by saving call output in variables, then explicitly passing the output back into the test fixture at the end. However, it would be super-awesome if this regular pattern would somehow be supported by Integrity, for example by allowing to create a "bracket" of some sort around instructions which at the start implicitly allows a fixture to save some state which it reuses later to perform the final check/wait.

@S1artie S1artie added this to the v0.16.0 milestone Dec 5, 2016
@S1artie S1artie removed this from the v0.16.0 milestone Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant