Skip to content

Add @Suite to top-level *Tests types missing the annotation#2

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/add-suite-annotation-to-tests
Closed

Add @Suite to top-level *Tests types missing the annotation#2
Copilot wants to merge 1 commit intomainfrom
copilot/add-suite-annotation-to-tests

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 20, 2026

Several top-level test types named *Tests using import Testing were inconsistently missing @Suite, with no apparent reason for the omission.

Changes

  • Added @Suite to 17 files in Tests/JExtractSwiftTests/ (including JNI/ subdirectory) that use Swift Testing but lacked the annotation:
    • ByteArrayTests, ClassPrintingTests, DataImportTests, ExtensionImportTests, FFMNestedTypesTests, FuncCallbackImportTests, InternalExtractTests, MethodImportTests, MethodThunkTests, OptionalImportTests, SendableTests, StringPassingTests, SwiftDocumentationParsingTests, UnsignedNumberTests, VariableImportTests, JNIIntConversionChecksTests, JNIUnsignedNumberTests
  • XCTestCase-based test types (SwiftJavaToolLibTests, SwiftJavaTests, SwiftJavaMacrosTests) were intentionally left unchanged
// Before
final class MethodThunkTests {

// After
@Suite
final class MethodThunkTests {

Agent-Logs-Url: https://github.com/sidepelican/swift-java/sessions/ba01485e-36ad-4376-b9be-729bcc2de0fc

Co-authored-by: sidepelican <19257572+sidepelican@users.noreply.github.com>

# Conflicts:
#	Tests/JExtractSwiftTests/JNI/JNIIntConversionChecksTests.swift
@sidepelican sidepelican force-pushed the copilot/add-suite-annotation-to-tests branch from 87fee4d to b06fbfa Compare April 20, 2026 00:55
@sidepelican sidepelican deleted the copilot/add-suite-annotation-to-tests branch April 20, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants