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

Add more plugin integration tests #46

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Feb 18, 2025

Motivation:

The SwiftPM build plugin doesn't currently handle proto files with the same name even if they come from different packages. This happens because the build system cannot handle object files with the same name. This change adds such a test while tidying up some of the plugin test code.

Modifications:

  • Divide up test resources in sources, config, and proto directories.
  • Have one function per test
  • Document each test with the expected structure
  • Add another test but don't run it. (It fails.)

Result:

More tests. The issue will be fixed in a separate change.

Motivation:

The SwiftPM build plugin doesn't currently handle proto files with the
same name even if they come from different packages. This happens
because the build system cannot handle object files with the same name.
This change adds such a test while tidying up some of the plugin test
code.

Modifications:

- Divide up test resources in sources, config, and proto directories.
- Have one function per test
- Document each test with the expected structure
- Add another test but don't run it. (It fails.)

Result:

More tests. The issue will be fixed in a separate change.
@glbrntt glbrntt added the semver/none No version bump required. label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant