diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9dc49d2..b12a2db 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,11 +1,12 @@ { "name": "Swift", - "image": "swift:5.9", + "image": "swift:latest", "features": { "ghcr.io/devcontainers/features/common-utils:2": { "installZsh": "false", "username": "dev" - } + }, + "ghcr.io/swift-server-community/swift-devcontainer-features/swift-format:0": {} }, "runArgs": [ "--cap-add=SYS_PTRACE", diff --git a/Package.swift b/Package.swift index b268455..ab505c4 100644 --- a/Package.swift +++ b/Package.swift @@ -4,11 +4,16 @@ import PackageDescription let package = Package( - name: "swift-with-devcontainer", - targets: [ - // Targets are the basic building blocks of a package, defining a module or a test suite. - // Targets can depend on other targets in this package and products from dependencies. - .executableTarget( - name: "swift-with-devcontainer"), - ] + name: "swift-with-devcontainer", + targets: [ + // Targets are the basic building blocks of a package, defining a module or a test suite. + // Targets can depend on other targets in this package and products from dependencies. + .executableTarget( + name: "swift-with-devcontainer" + ), + .testTarget( + name: "swift-with-devcontainerTests", + dependencies: ["swift-with-devcontainer"] + ), + ] ) diff --git a/Tests/example.swift b/Tests/example.swift new file mode 100644 index 0000000..06d6c37 --- /dev/null +++ b/Tests/example.swift @@ -0,0 +1,7 @@ +import XCTest + +class ExampleTests: XCTestCase { + func testAdd() { + XCTAssertEqual(1 + 1, 2) + } +}