File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 21
21
usage ( )
22
22
case . Run( let xctestArg) :
23
23
let dir = try directories ( )
24
+ let configuration = " debug " //FIXME should swift-test support configuration option?
24
25
25
26
func determineTestPath( ) -> String {
26
27
27
28
//FIXME better, ideally without parsing manifest since
28
29
// that makes us depend on the whole Manifest system
29
30
30
31
let packageName = dir. root. basename //FIXME probably not true
31
- let maybePath = Path . join ( dir. build, " \( packageName) .xctest " )
32
+ let maybePath = Path . join ( dir. build, configuration , " \( packageName) .xctest " )
32
33
33
34
if maybePath. exists {
34
35
return maybePath
40
41
}
41
42
}
42
43
43
- let yamlPath = Path . join ( dir. build, " debug .yaml" )
44
+ let yamlPath = Path . join ( dir. build, " \( configuration ) .yaml " )
44
45
try build ( YAMLPath: yamlPath, target: " test " )
45
46
46
47
let success = try test ( path: determineTestPath ( ) , xctestArg: xctestArg)
You can’t perform that action at this time.
0 commit comments