Skip to content

Commit

Permalink
Workflow change (#18)
Browse files Browse the repository at this point in the history
* Update swift.yml

* Update README.md

Minor typos fixed

* Update swift.yml
  • Loading branch information
Genaro-Chris authored Nov 17, 2023
1 parent 78794b0 commit 95e384a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

name: Swift

on:
Expand All @@ -8,14 +11,19 @@ on:

jobs:
build:

runs-on: macos-13
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-13, ubuntu-latest]
swift: ["5.9"]

steps:
- uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v3
- name: Select Xcode version
run: sudo xcode-select -s '/Applications/Xcode_15.0.1.app/Contents/Developer'
- name: Build
run: swift build
- name: Run tests
run: swift test
run: swift build
- name: Test
run: swift test
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<a href="https://github.com/PGSSoft/XCTestParametrizedMacro/blob/main/LICENSE"><img src="https://img.shields.io/github/license/pgssoft/xctestparametrizedmacro.svg" alt="License"></a>
## Summary

A straightforward yet powerful Swift macro designed to simplify the unit test creation process. This tool allows you to easily parameterize your XCTest methods by automatically generating test methods based on specified arguments. Write your test method once and effortlessly generate variations with different parameters. This approach not only simplifies test maintenance but also makes identifying failing tests more effective. Inspired by JUnit parametrized tests.
A straightforward yet powerful Swift macro designed to simplify the unit test creation process. This tool allows you to easily parameterize your XCTest methods by automatically generating test methods based on specified arguments. Write your test methods once and effortlessly generate variations with different parameters. This approach not only simplifies test maintenance but also makes identifying failing tests more effective. Inspired by JUnit parametrized tests.

## Requirements

Expand Down Expand Up @@ -162,7 +162,7 @@ Macro will generate following test method.
- [x] Custom objects as input values (like structs, classes and enums)
- [x] Diagnostics for error handling
- [x] Expected output array of objects/values
- [x] Labels for paramter values like: `@Parametrize(input: [3.14, 2.71], labels: ["pi", "e"])`
- [x] Labels for parameter values like: `@Parametrize(input: [3.14, 2.71], labels: ["pi", "e"])`

## License
XCTestParametrizedMacro is released under an MIT license. See [LICENSE](LICENSE)

0 comments on commit 95e384a

Please sign in to comment.