Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Jan 29, 2025
1 parent 492e1a5 commit ae96d36
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Tests/IssueReportingTests/WithErrorReportingTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#if canImport(Testing)
import Testing
import IssueReporting

@Suite
struct WithErrorReportingTests {
@Test func basics() {
withKnownIssue {
withErrorReporting {
throw SomeError()
}
} matching: { issue in
issue.description == "Caught error: SomeError()"
}
}
}

private struct SomeError: Error {}
#endif

0 comments on commit ae96d36

Please sign in to comment.