Skip to content

[skip-changelog] Migrate tests from test_upgrade.py to upgrade_test.go #1859

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

Merged
merged 3 commits into from
Sep 2, 2022

Conversation

MatteoPologruto
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)

What kind of change does this PR introduce?

Infrastructure Enhancement

What is the new behavior?

This PR is a followup to PR #1806
Integration tests that were previously present in test_upgrade.py have been rewritten in upgrade_test.go, without changing their original purpose.
The tests are the following:

  • TestUpgrade
  • TestUpgradeUsingLibraryWithInvalidVersion
  • TestUpgradeUnusedCoreToolsAreRemoved

Does this PR introduce a breaking change, and is titled accordingly?

No


See how to contribute

@MatteoPologruto MatteoPologruto added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure labels Sep 1, 2022
@MatteoPologruto MatteoPologruto self-assigned this Sep 1, 2022
@codecov
Copy link

codecov bot commented Sep 1, 2022

Codecov Report

Merging #1859 (1dba5dd) into master (c2af7c5) will increase coverage by 0.06%.
The diff coverage is n/a.

❗ Current head 1dba5dd differs from pull request most recent head bf3c2f6. Consider uploading reports for the commit bf3c2f6 to get more accurate results

@@            Coverage Diff             @@
##           master    #1859      +/-   ##
==========================================
+ Coverage   36.66%   36.72%   +0.06%     
==========================================
  Files         231      231              
  Lines       19609    19609              
==========================================
+ Hits         7190     7202      +12     
+ Misses      11594    11585       -9     
+ Partials      825      822       -3     
Flag Coverage Δ
unit 36.72% <ø> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
arduino/monitor/monitor.go 47.36% <0.00%> (+6.31%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@MatteoPologruto MatteoPologruto marked this pull request as ready for review September 2, 2022 11:04
@MatteoPologruto MatteoPologruto merged commit 67a62d9 into master Sep 2, 2022
@MatteoPologruto MatteoPologruto deleted the upgrade-test-go branch September 2, 2022 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants