Skip to content

Commit dc2a3de

Browse files
committed
Clarify that multiple test-modules can be created
1 parent 68e618c commit dc2a3de

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

proposals/0008-package-manager-testing.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ In the examples above
5252
a test case is created for the module `Foo`
5353
based on the sources in the relevant subdirectories.
5454

55+
A test-module is created per subdirectory of Tests, so:
56+
57+
Package
58+
├── Sources
59+
│ └── Foo
60+
│ └──Foo.swift
61+
└── Tests
62+
└── Foo
63+
└── Test.swift
64+
└── Bar
65+
└── Test.swift
66+
67+
Would create two test-modules. The modules in this example may
68+
test different aspects of the module Foo, it is entirely up
69+
to the package author.
70+
5571
Additionally we will support directories called `FooTests`.
5672
This layout style is prevalent in existing open source projects
5773
and supporting it will minimize vexation for their authors.
@@ -192,7 +208,7 @@ Or specific tests:
192208

193209
swift build -t FooTestCase.test1
194210

195-
swiftpm would forward arguments to the underlying testing framework and it
211+
SwiftPM would forward arguments to the underlying testing framework and it
196212
would decide how to interpret them.
197213

198214

0 commit comments

Comments
 (0)