Skip to content

Commit

Permalink
Merge pull request #68 from DeluxeAlonso/feature/snapshot-testing
Browse files Browse the repository at this point in the history
Feature/snapshot testing
  • Loading branch information
DeluxeAlonso committed Nov 16, 2023
2 parents b71a15a + 2a13a4d commit 210bd4d
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ jobs:
run: bundle install
- name: Run unit tests
run: bundle exec fastlane tests
snapshot_test:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Install Bundle
run: bundle install
- name: Run snapshot tests
run: bundle exec fastlane snapshot_tests
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,32 @@
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E2FBCEBF2441608600147B1B"
BuildableName = "Calculator.app"
BlueprintName = "CalculatorReplicaSwiftUI"
ReferencedContainer = "container:CalculatorReplicaSwiftUI.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E2FBCEBF2441608600147B1B"
BuildableName = "Calculator.app"
BlueprintName = "CalculatorReplicaSwiftUI"
ReferencedContainer = "container:CalculatorReplicaSwiftUI.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
7 changes: 7 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ platform :ios do
)
end

lane :snapshot_tests do
run_tests(
devices: ["iPhone 14 Pro (16.4)"],
scheme: "CalculatorReplicaSwiftUISnapshotTests"
)
end

end
33 changes: 22 additions & 11 deletions fastlane/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,40 @@
fastlane documentation
================
----

# Installation

Make sure you have the latest version of the Xcode command line tools installed:

```
```sh
xcode-select --install
```

Install _fastlane_ using
```
[sudo] gem install fastlane -NV
```
or alternatively using `brew install fastlane`
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)

# Available Actions

## iOS

### ios tests

```sh
[bundle exec] fastlane ios tests
```
fastlane ios tests



### ios snapshot_tests

```sh
[bundle exec] fastlane ios snapshot_tests
```



----

This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run.
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.

More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).

The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).

0 comments on commit 210bd4d

Please sign in to comment.