Skip to content

Commit

Permalink
Run tests using xcodebuild
Browse files Browse the repository at this point in the history
I'd rather use swift test, but can't find a way to send coverage report
to coveralls without parsing the profdata myself.
  • Loading branch information
dhardiman committed Apr 26, 2019
1 parent d8b9730 commit e20d08e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ jobs:
xcode: "10.2.0"
steps:
- checkout
- run: bundle install
- run: bundle install
- run:
name: Run Tests
name: Generate xcode project for code coverage
command: |
swift test --enable-code-coverage 2>&1 |
xcpretty --report html --output test_output/results.html --report junit --output test_output/unit-tests/results.xml
swift package generate-xcodeproj --enable-code-coverage
- run:
name: Generate xcode project for code coverage
name: Run Tests
command: |
swift package generate-xcodeproj
xcodebuild -scheme Config-Package test |
xcpretty --report html --output test_output/results.html --report junit --output test_output/unit-tests/results.xml
- run:
name: Post Coverage
command: bundle exec slather
Expand Down
1 change: 0 additions & 1 deletion .slather.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ coverage_service: coveralls
ci_service: circleci
xcodeproj: Config.xcodeproj
scheme: Config-Package
build-directory: ./build/debug/codecov
ignore:
- .build/*
- Carthage/*
Expand Down

0 comments on commit e20d08e

Please sign in to comment.