Skip to content

[skip-changelog] Migrate tests from test_sketch.py to sketch_test.go #1921

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 47 commits into from
Nov 7, 2022

Conversation

MatteoPologruto
Copy link
Contributor

Please check if the PR fulfills these requirements

See how to contribute

  • 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_sketch.py have been rewritten in sketch_test.go, without changing their original purpose.

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

No

@MatteoPologruto MatteoPologruto added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure labels Oct 13, 2022
@MatteoPologruto MatteoPologruto self-assigned this Oct 13, 2022
@MatteoPologruto MatteoPologruto marked this pull request as ready for review October 13, 2022 15:55
currentSketchPath = currentPath.Join(sketchName)
stdout, _, err = cli.Run("sketch", "new", currentSketchPath.String())
require.NoError(t, err)
require.Contains(t, string(stdout), "Sketch created in: ", currentSketchPath.String())
Copy link
Member

Choose a reason for hiding this comment

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

Same thing here and all the orher checks in this test

…WithoutExtension from test_sketch.py to sketch_test.go
…WithExtension from test_sketch.py to sketch_test.go
…WithoutExtension from test_sketch.py to sketch_test.go
…WithExtension from test_sketch.py to sketch_test.go
…WithoutExtension from test_sketch.py to sketch_test.go
…WithExtension from test_sketch.py to sketch_test.go
…WithoutExtension from test_sketch.py to sketch_test.go
…WithExtension from test_sketch.py to sketch_test.go
…WithIncludeBuildDirFlag from test_sketch.py to sketch_test.go
…WithIncludeBuildDirFlag from test_sketch.py to sketch_test.go
…ncludeBuildDirFlag from test_sketch.py to sketch_test.go
…ludeBuildDirFlag from test_sketch.py to sketch_test.go
…ludeBuildDirFlag from test_sketch.py to sketch_test.go
…WithoutExtensionWithIncludeBuildDirFlag from test_sketch.py to sketch_test.go
…WithExtensionWithIncludeBuildDirFlag from test_sketch.py to sketch_test.go
…WithoutExtensionWithIncludeBuildDirFlag from test_sketch.py to sketch_test.go
…WithExtensionWithIncludeBuildDirFlag from test_sketch.py to sketch_test.go
…ludeBuildDirFlag from test_sketch.py to sketch_test.go
…ludeBuildDirFlag from test_sketch.py to sketch_test.go
…WithoutExtensionWithIncludeBuildDirFlag from test_sketch.py to sketch_test.go
…WithExtensionWithIncludeBuildDirFlag from test_sketch.py to sketch_test.go
…WithoutExtensionWithIncludeBuildDirFlag from test_sketch.py to sketch_test.go
…WithExtensionWithIncludeBuildDirFlag from test_sketch.py to sketch_test.go
Copy link
Member

@cmaglie cmaglie left a comment

Choose a reason for hiding this comment

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

👍🏼

@MatteoPologruto MatteoPologruto merged commit 4bb8314 into arduino:master Nov 7, 2022
@MatteoPologruto MatteoPologruto deleted the sketch-test branch November 7, 2022 07:58
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