Skip to content

Commit

Permalink
Merge pull request #32 from niscy-eudiw/main
Browse files Browse the repository at this point in the history
Added xcov plugin to fastlane
  • Loading branch information
stzouvaras authored Dec 2, 2024
2 parents 1d7c7ba + 4c9eb72 commit 887712a
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 18 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ Package.resolved
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output
fastlane/test_output
fastlane/*.xcresult

#XCOV
xcov_output
File renamed without changes.
File renamed without changes.
28 changes: 14 additions & 14 deletions Tests/Mock/GeneratedMocks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,13 @@ class DIGraphTypeStub:DIGraphType, @unchecked Sendable {



// MARK: - Mocks generated from file: 'Sources/Domain/Entities/DocumentData.swift'

import Cuckoo
@testable import EudiRQESUi



// MARK: - Mocks generated from file: 'Sources/Domain/Entities/Error/EudiRQESUiError.swift'

import Cuckoo
Expand All @@ -719,6 +726,13 @@ import Cuckoo



// MARK: - Mocks generated from file: 'Sources/Domain/Entities/QTSPData.swift'

import Cuckoo
@testable import EudiRQESUi



// MARK: - Mocks generated from file: 'Sources/Domain/Extension/Document+Extensions.swift'

import Cuckoo
Expand Down Expand Up @@ -2218,20 +2232,6 @@ import RqesKit



// MARK: - Mocks generated from file: 'Sources/Presentation/Entities/DocumentData.swift'

import Cuckoo
@testable import EudiRQESUi



// MARK: - Mocks generated from file: 'Sources/Presentation/Entities/QTSPData.swift'

import Cuckoo
@testable import EudiRQESUi



// MARK: - Mocks generated from file: 'Sources/Presentation/Extension/UIApplication+Extensions.swift'

import Cuckoo
Expand Down
3 changes: 2 additions & 1 deletion fastlane/.env.dev
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DEV_REMOTE_REPO = https://github.com/niscy-eudiw/eudi-lib-ios-rqes-ui.git
DEV_REMOTE_REPO = https://github.com/niscy-eudiw/eudi-lib-ios-rqes-ui.git
SCHEME = EudiRQESUi
3 changes: 2 additions & 1 deletion fastlane/.env.release
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
PROD_REMOTE_REPO = https://github.com/eu-digital-identity-wallet/eudi-lib-ios-rqes-ui.git
DEV_REMOTE_REPO = https://github.com/niscy-eudiw/eudi-lib-ios-rqes-ui.git
DEV_REMOTE_REPO = https://github.com/niscy-eudiw/eudi-lib-ios-rqes-ui.git
SCHEME = EudiRQESUi
33 changes: 33 additions & 0 deletions fastlane/.xcovignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Tests
- GeneratedMocks.swift
- Test.*.swift

# Config
- .*Config.*.swift
- Config.*.swift

# Views/Components
- ViewModel.swift
- .*View.swift
- .*ViewController.swift
- .*ViewModel.swift
- .*Shape.swift
- .*Style.swift
- .*Styles.swift
- .*Modifier.swift
- .*Content.swift
- .*UIModel.swift

# Logic
- .*Manager.swift
- .*Graph.swift
- .*Assembly.swift

# Controller
- LogController.swift

# Entry
- EudiRQESUi.swift

# Extensions
- .*Extensions.swift
16 changes: 15 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ platform :ios do

desc "Run package tests with coverage"
lane :test do

FileUtils.remove_dir "../xcov_output", true

params = {
package_path: '.',
scheme: 'EudiRQESUi',
scheme: ENV['SCHEME'],
devices: ['iPhone 16 Pro Max'],
result_bundle: true
}
Expand All @@ -31,6 +34,17 @@ lane :test do
end

run_tests(params)

xcov(
scheme: ENV['SCHEME'],
output_directory: "xcov_output",
is_swift_package: true
)

if ENV['CI'] != 'true'
sh 'open ../xcov_output/index.html'
end

end

desc "Deploy tags"
Expand Down

0 comments on commit 887712a

Please sign in to comment.