Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jobs:
make
set -o pipefail && xcodebuild test -scheme "Cuckoo-macOS" -workspace Cuckoo.xcworkspace \
| xcbeautify --renderer github-actions
- name: Test generator
run: |
set -o pipefail && xcodebuild test -scheme "Generator" -workspace Cuckoo.xcworkspace \
| xcbeautify --renderer github-actions

test_iOS:
name: Build and Test on iOS simulator
Expand Down
2 changes: 1 addition & 1 deletion Generator/Sources/CLI/Version.swift
Original file line number Diff line number Diff line change
@@ -1 +1 @@
let version = "2.0.10"
let version = "2.4.0"
17 changes: 17 additions & 0 deletions Generator/Tests/VersionTest.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Foundation
import XCTest

final class VersionTest: XCTestCase {
func testGeneratorVersionMatchesLibraryVersion() throws {
let repositoryURL = URL(fileURLWithPath: #filePath)
.deletingLastPathComponent()
.deletingLastPathComponent()
.deletingLastPathComponent()
let libraryVersion = try String(
contentsOf: repositoryURL.appendingPathComponent("version"),
encoding: .utf8
).trimmingCharacters(in: .whitespacesAndNewlines)

XCTAssertEqual(version, libraryVersion)

Check failure on line 15 in Generator/Tests/VersionTest.swift

View workflow job for this annotation

GitHub Actions / Build and Test on macOS

static member 'version' cannot be used on instance of type 'VersionTest'

Check failure on line 15 in Generator/Tests/VersionTest.swift

View workflow job for this annotation

GitHub Actions / Build and Test on macOS

cannot convert value of type '() -> Int' to expected argument type 'String'
}
}
Loading