File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,22 @@ In the examples above
52
52
a test case is created for the module ` Foo `
53
53
based on the sources in the relevant subdirectories.
54
54
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
+
55
71
Additionally we will support directories called ` FooTests ` .
56
72
This layout style is prevalent in existing open source projects
57
73
and supporting it will minimize vexation for their authors.
@@ -192,7 +208,7 @@ Or specific tests:
192
208
193
209
swift build -t FooTestCase.test1
194
210
195
- swiftpm would forward arguments to the underlying testing framework and it
211
+ SwiftPM would forward arguments to the underlying testing framework and it
196
212
would decide how to interpret them.
197
213
198
214
You can’t perform that action at this time.
0 commit comments