Commit b234e08
authored
Add missing
### Motivation:
When running `swift package init --type executable
--enable-swift-testing` an example test is generated but the test target
is not created in the manifest.
### Modifications:
Add the missing test target to the manifest when these types are
initialized with swift-testing tests. This applies to the `tool` and
`executable` types.
### Result:
Packages are initialized with a test target and running `swift test`
runs the generated test successfully.
Issue: #9149testTarget for package init swift-testing tests (#9152)1 parent 5f05670 commit b234e08
File tree
2 files changed
+28
-0
lines changed- Sources/Workspace
- Tests/WorkspaceTests
2 files changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
303 | 314 | | |
304 | 315 | | |
305 | 316 | | |
306 | 317 | | |
| 318 | + | |
307 | 319 | | |
308 | 320 | | |
309 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
310 | 333 | | |
311 | 334 | | |
312 | 335 | | |
313 | 336 | | |
314 | 337 | | |
315 | 338 | | |
316 | 339 | | |
| 340 | + | |
317 | 341 | | |
318 | 342 | | |
319 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
| 320 | + | |
319 | 321 | | |
320 | 322 | | |
321 | 323 | | |
| |||
344 | 346 | | |
345 | 347 | | |
346 | 348 | | |
| 349 | + | |
| 350 | + | |
347 | 351 | | |
348 | 352 | | |
349 | 353 | | |
| |||
0 commit comments