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 27
27
28
28
case . Run( let specifier) :
29
29
let dir = try directories ( )
30
+ let configuration = " debug " //FIXME should swift-test support configuration option?
30
31
31
32
func determineTestPath( ) -> String {
32
33
33
34
//FIXME better, ideally without parsing manifest since
34
35
// that makes us depend on the whole Manifest system
35
36
36
37
let packageName = dir. root. basename //FIXME probably not true
37
- let maybePath = Path . join ( dir. build, " \( packageName) .xctest " )
38
+ let maybePath = Path . join ( dir. build, configuration , " \( packageName) .xctest " )
38
39
39
40
if maybePath. exists {
40
41
return maybePath
46
47
}
47
48
}
48
49
49
- let yamlPath = Path . join ( dir. build, " debug .yaml" )
50
+ let yamlPath = Path . join ( dir. build, " \( configuration ) .yaml " )
50
51
try build ( YAMLPath: yamlPath, target: " test " )
51
52
let success = try test ( path: determineTestPath ( ) , xctestArg: specifier)
52
53
exit ( success ? 0 : 1 )
You can’t perform that action at this time.
0 commit comments