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: Replace existing NUnit assertions with updated ones to align with NUnit 4 standards. #713

Merged
merged 7 commits into from
Dec 23, 2023

Conversation

Dor-bl
Copy link
Collaborator

@Dor-bl Dor-bl commented Dec 21, 2023

List of changes

  • build(deps): Add NUnit.Analyzers 3.10.0 to test/integration
  • chore: Add rule NUnit1032 to recognize Quit as an additional dispose method)
  • test: Update existing NUnit assertions with updated ones to align with NUnit 4 standards.
  • test: added Assert.Multiple when possible

once this PR is merged we can merge #708 as well.

Types of changes

What types of changes are you proposing/introducing to the .NET client?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • New feature (non-breaking change which adds value to the project)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)

Documentation

  • Have you proposed a file change/ PR with appium to update documentation?

This can be done by navigating to the documentation section on http://appium.io selecting the appropriate command/endpoint and clicking the 'Edit this doc' link to update the C# example

Integration tests

  • Have you provided integration tests to pass against the beta version of appium? (for Bugfix or New feature)

Details

Please provide more details about changes if it is necessary. If there are new features you can provide code samples showing how they work and possible use cases. Also, you can create gists with pasted C# code samples or put them here using markdown.
About markdown please read Mastering markdown and Writing on GitHub

Assert.AreEqual(settings[AutomatorSetting.WaitForIDLETimeout], 3500);
Assert.AreEqual(settings[AutomatorSetting.WaitForSelectorTimeout], 5000);
Assert.AreEqual(settings[AutomatorSetting.WaitScrollAcknowledgmentTimeout], 7000);
Assert.Multiple(() =>
Copy link
Member

Choose a reason for hiding this comment

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

nice

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tell that to NUnit Analyzer 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@KazuCocoa fixed an issue I found before the merge. please approve if needed

Copy link
Collaborator

@laolubenson laolubenson left a comment

Choose a reason for hiding this comment

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

LGTM! 🎉

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@KazuCocoa, @laolubenson Another issue I fixed just now.

@Dor-bl Dor-bl merged commit 6d37359 into appium:main Dec 23, 2023
3 checks passed
@Dor-bl Dor-bl deleted the NUnit.Analyzer branch December 23, 2023 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants