Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format and gh action #9

Merged
merged 5 commits into from
Nov 5, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
remove force try
GErP83 committed Nov 5, 2024
commit 285bfbcd6e89894bf7cf80546a88f05d7ec93bbb
2 changes: 1 addition & 1 deletion Sources/TestifySDK/Models/TestSuite.swift
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ import Foundation
extension TestSuite {
public static func parse(_ input: String) -> TestSuite? {
let decoder = RawTestResultDecoder()
let suite = try! decoder.decode(input)
let suite = try? decoder.decode(input)
return suite
}
}
6 changes: 3 additions & 3 deletions Sources/testify/main.swift
Original file line number Diff line number Diff line change
@@ -46,16 +46,16 @@ case .json:

case .junit:
let encoder = TestResultJunitEncoder()
let junitData = try! encoder.encode(suite)
let junitData = try encoder.encode(suite)
print(junitData)

case .md:
let encoder = TestResultMarkdownEncoder()
let mdData = try! encoder.encode(suite)
let mdData = try encoder.encode(suite)
print(mdData)

case .gfm:
let encoder = TestResultGitHubFlavoredMarkdownEncoder()
let mdData = try! encoder.encode(suite)
let mdData = try encoder.encode(suite)
print(mdData)
}