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

test: migrate old tests to the new test framework #806

Merged
merged 19 commits into from Feb 18, 2022

Conversation

mwwoda
Copy link
Contributor

@mwwoda mwwoda commented Feb 17, 2022

Migrate all tests that were previously running on AppVeyor. Fixes #399.

Copy link
Contributor

@antusus antusus left a comment

Choose a reason for hiding this comment

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

I think that maybe we would like and adopt more BDD style testing?
When removing elements we should check that method is calling API, I think we might get deleted object and verify it was deleted?


var result = await UserClient.FoldersManager.RemoveWatermarkAsync(folder.Id);

Assert.IsTrue(result);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not do this in a BDD way - which for me is way better in Integration Tests:
Add watermark to folder,
check information,
get watermark
then remove
I this test if the ApplyWatermarkAsync fails would the test still pass as remove would succeed?

Copy link
Contributor

@antusus antusus left a comment

Choose a reason for hiding this comment

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

👍

@mwwoda mwwoda merged commit ed9ab28 into main Feb 18, 2022
@mwwoda mwwoda deleted the sdk-1976-remove-appveyor branch February 18, 2022 10:01
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.

Integration Tests
2 participants