We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a441576 commit 30e623fCopy full SHA for 30e623f
1 file changed
Plugins/SelectiveTestingPlugin/SelectiveTestingPlugin.swift
@@ -42,6 +42,12 @@ struct SelectiveTestingPlugin: CommandPlugin {
42
43
var toolArguments = arguments
44
45
+ if let indexOfTarget = toolArguments.firstIndex(of: "--target"),
46
+ indexOfTarget != (toolArguments.count - 1) {
47
+ toolArguments.remove(at: indexOfTarget + 1)
48
+ toolArguments.remove(at: indexOfTarget)
49
+ }
50
+
51
if !toolArguments.contains(where: { $0 == "--test-plan" }),
52
let testPlan = context.xcodeProject.filePaths.first(where: {
53
$0.extension == "xctestplan"
0 commit comments