Swiftpack.co - Package - tokorom/swift-build-report

swift-build-report

Usage

Pretty format for swift build/test

$ swift test 2>&1 | swift-build-report

sample_pretty

Error reports for other tools

$ swift test 2>&1 | swift-build-report --report default --output .build/errors.txt
  • .build/errors.txt
/foo/bar/main.swift:77:5: error: expected declaration
/foo/bar/main.swift:61:9: error: use of unresolved identifier 'foo'
/foo/bar/main.swift:117:13: error: use of unresolved identifier 'printIfNeeded'

Installation

$ brew tap tokorom/tokorom
$ brew install swift-build-report

Formats

  • --format pretty (default) sample_pretty

  • --format simple (do not replace all strings) sample_simple

Error Handling

Vim

  • shell
$ swift test 2>&1 | swift-build-report --report default --output errors.txt
  • Vim (QuickFix)
:cfile errors.txt
:copen
  • jump to first error automatically vim_quickfix

Github

link
Stars: 1

Dependencies

Used By

Total: 0