class Swiftrail::Swift::Lint

Attributes

test_rail_base_url[R]
test_rail_password[R]
test_rail_username[R]
tests_patterns[R]

Public Class Methods

new(tests_patterns) click to toggle source
# File lib/swiftrail/swift/lint.rb, line 6
def initialize(tests_patterns)
  @tests_patterns = tests_patterns
end

Public Instance Methods

lint() click to toggle source
# File lib/swiftrail/swift/lint.rb, line 10
def lint
  swift_tests.select { |t| t.case_ids.empty? }
end

Private Instance Methods

swift_test_parser() click to toggle source
# File lib/swiftrail/swift/lint.rb, line 22
def swift_test_parser
  Swiftrail::Swift::Parser.new(tests_patterns)
end
swift_tests() click to toggle source
# File lib/swiftrail/swift/lint.rb, line 18
def swift_tests
  swift_test_parser.parse
end