{"action":"opened","issue":{"url":"https://api.github.com/repos/integrity-tf/integrity/issues/131","repository_url":"https://api.github.com/repos/integrity-tf/integrity","labels_url":"https://api.github.com/repos/integrity-tf/integrity/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/integrity-tf/integrity/issues/131/comments","events_url":"https://api.github.com/repos/integrity-tf/integrity/issues/131/events","html_url":"https://github.com/integrity-tf/integrity/issues/131","id":193487541,"number":131,"title":"Provide language construct for \"save some state, then do some stuff, then use that state as the input for a test\" kind of testing","user":{"login":"S1artie","id":3661818,"avatar_url":"https://avatars.githubusercontent.com/u/3661818?v=3","gravatar_id":"","url":"https://api.github.com/users/S1artie","html_url":"https://github.com/S1artie","followers_url":"https://api.github.com/users/S1artie/followers","following_url":"https://api.github.com/users/S1artie/following{/other_user}","gists_url":"https://api.github.com/users/S1artie/gists{/gist_id}","starred_url":"https://api.github.com/users/S1artie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/S1artie/subscriptions","organizations_url":"https://api.github.com/users/S1artie/orgs","repos_url":"https://api.github.com/users/S1artie/repos","events_url":"https://api.github.com/users/S1artie/events{/privacy}","received_events_url":"https://api.github.com/users/S1artie/received_events","type":"User","site_admin":false},"labels":[{"id":32904141,"url":"https://api.github.com/repos/integrity-tf/integrity/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/integrity-tf/integrity/milestones/21","html_url":"https://github.com/integrity-tf/integrity/milestones/v0.16.0","labels_url":"https://api.github.com/repos/integrity-tf/integrity/milestones/21/labels","id":1508666,"number":21,"title":"v0.16.0","description":"","creator":{"login":"S1artie","id":3661818,"avatar_url":"https://avatars.githubusercontent.com/u/3661818?v=3","gravatar_id":"","url":"https://api.github.com/users/S1artie","html_url":"https://github.com/S1artie","followers_url":"https://api.github.com/users/S1artie/followers","following_url":"https://api.github.com/users/S1artie/following{/other_user}","gists_url":"https://api.github.com/users/S1artie/gists{/gist_id}","starred_url":"https://api.github.com/users/S1artie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/S1artie/subscriptions","organizations_url":"https://api.github.com/users/S1artie/orgs","repos_url":"https://api.github.com/users/S1artie/repos","events_url":"https://api.github.com/users/S1artie/events{/privacy}","received_events_url":"https://api.github.com/users/S1artie/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-01-15T10:39:23Z","updated_at":"2016-12-05T12:44:45Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-12-05T12:44:45Z","updated_at":"2016-12-05T12:44:45Z","closed_at":null,"body":"When doing testing of asynchronous processes, one often has to work like in this pattern:\r\n\r\n- First, save some state (maybe a counter value)\r\n- 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)\r\n- Then wait for the state change to happen (for example wait for the counter to increase further than the original value stored earlier)\r\n\r\nYou 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."}}
{"actor":{"display_login":"S1artie"}}