Added doc and acceptance tests (#2540)
This commit is contained in:
parent
bcd2bfd317
commit
ee420961d8
|
@ -6,4 +6,5 @@ Feature: Lint code using Tuist (SwiftLint)
|
|||
Then I copy the fixture app_with_framework_where_framework_failing_swiftlint into the working directory
|
||||
Then tuist lints project's code and fails
|
||||
Then tuist lints code of target with name "Framework" and fails
|
||||
Then tuist lints code of target with name "App" and passes
|
||||
Then tuist lints code of target with name "App" and passes
|
||||
Then tuist strict lints code of target with name "App" and fails
|
||||
|
|
|
@ -13,7 +13,12 @@ Then(/tuist lints code of target with name "(.+)" and passes/) do |targetName|
|
|||
flunk(err) unless status.success?
|
||||
end
|
||||
|
||||
Then(/tuist strict lints code of target with name "(.+)" and fails/) do |targetName|
|
||||
out, err, status = Open3.capture3("swift", "run", "tuist", "lint", "code", targetName, "--path", @dir, "--strict")
|
||||
flunk(err) if status.success?
|
||||
end
|
||||
|
||||
Then(/tuist lints code of target with name "(.+)" and fails/) do |targetName|
|
||||
out, err, status = Open3.capture3("swift", "run", "tuist", "lint", "code", targetName, "--path", @dir)
|
||||
flunk(err) if status.success?
|
||||
end
|
||||
end
|
||||
|
|
|
@ -76,5 +76,9 @@ You can provide your SwiftLint configuration file by placing it under the root `
|
|||
default: '',
|
||||
optional: true,
|
||||
},
|
||||
{
|
||||
long: '`--strict`',
|
||||
description: 'Fails on warnings.',
|
||||
},
|
||||
]}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue