Skip to content

Commit

Permalink
Discover tests in the srcs of a swift_test target itself.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 471649888
  • Loading branch information
allevato authored and swiple-rules-gardener committed Sep 1, 2022
1 parent 477b48a commit 0727866
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 117 deletions.
2 changes: 1 addition & 1 deletion examples/xplatform/grpc/client_unit_test.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import examples_xplatform_grpc_echo_proto

@testable import examples_xplatform_grpc_echo_client_test_stubs_swift

class ClientUnitTest {
class ClientUnitTest: XCTestCase {

func testSynchronousCall() throws {
let client: RulesSwift_Examples_Grpc_EchoServiceService = {
Expand Down
5 changes: 1 addition & 4 deletions examples/xplatform/xctest/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@ licenses(["notice"])

swift_test(
name = "xctest",
srcs = [
"SimpleTests.swift",
"main.swift",
],
srcs = ["SimpleTests.swift"],
)
21 changes: 0 additions & 21 deletions examples/xplatform/xctest/main.swift

This file was deleted.

Loading

1 comment on commit 0727866

@brentleyjones
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.