Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bradfol
Copy link
Contributor

@bradfol bradfol commented Aug 30, 2022

Allows running unit tests when loading up the project from the package definition

Package.swift Outdated
path: "Sources"),
.testTarget(name: "SwinjectTests",
dependencies: ["Swinject"],
path: "Tests/SwinjectTests"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
path: "Tests/SwinjectTests"),

Seems redundant since it's already on the default path.

Copy link
Contributor

Choose a reason for hiding this comment

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

Regardless, a blessed PR

Copy link
Contributor Author

@bradfol bradfol Sep 27, 2022

Choose a reason for hiding this comment

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

Ah thanks for pointing that out, updated the PR to remove the custom path

Docs https://developer.apple.com/documentation/packagedescription/target/path

@bradfol bradfol force-pushed the swiftpackage-testtarget branch from 74df573 to ef1a751 Compare September 27, 2022 18:28
@bradfol bradfol requested a review from oronbz November 16, 2022 18:10
Copy link
Contributor

@maxim-chipeev maxim-chipeev left a comment

Choose a reason for hiding this comment

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

@mpdifran This looks good too.

@mpdifran mpdifran merged commit 44da9a1 into Swinject:master Nov 23, 2022
@bradfol bradfol deleted the swiftpackage-testtarget branch November 23, 2022 23:16
@bradfol bradfol mentioned this pull request May 8, 2024
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.

4 participants