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

Advanced testing tools: improvements #1816

Merged
merged 7 commits into from
Apr 16, 2021
Merged

Conversation

max-vasin
Copy link
Contributor

  • saga: mockable commands implementations
  • saga: mockable queries implementations
  • saga: convenient failure output

@max-vasin max-vasin requested a review from resolve-bot as a code owner April 15, 2021 11:31
@max-vasin max-vasin requested a review from const314 April 15, 2021 11:31
@max-vasin max-vasin requested a review from aleks-pro April 15, 2021 11:33
})

test('shouldExecuteCommand failure output should contain all executed commands', async () => {
try {
Copy link
Collaborator

Choose a reason for hiding this comment

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

In that way we will never know if shouldExecuteCommand method stops to fail. And the same for the next two tests.


if (environment.isExecuted()) {
throw Error(
`Command implementation cannot be mocked if the test was executed.`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
`Command implementation cannot be mocked if the test was executed.`
`Command implementation cannot be mocked if the test is finished.`

?
/cc @EugeniyBurmistrov

Copy link
Contributor

Choose a reason for hiding this comment

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

The original phrase and the edit mean different things. The edit is indeed correct if the message's indended meaning was "is already finished" and not "was invoked and possibly still runs".

@max-vasin max-vasin merged commit bdcf9a2 into dev Apr 16, 2021
@max-vasin max-vasin deleted the feature/mockable-commands branch April 16, 2021 11:53
@max-vasin max-vasin added the enhancement Issues related to potential improvements and new features label Apr 22, 2021
@max-vasin max-vasin changed the title Feature/Testing tools improvements Advanced testing tools: improvements Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues related to potential improvements and new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants