From 1cb5825b2e331f7870c55f42709fcd87ca8cfa23 Mon Sep 17 00:00:00 2001 From: Jason Morley Date: Thu, 13 Feb 2025 06:45:19 -1000 Subject: [PATCH] test: Add empty testing infrastructure and run it under CI (#15) --- Package.swift | 3 +++ Tests/ReporterTests/Dummy.swift | 6 ++++++ scripts/build-ubuntu.sh | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Tests/ReporterTests/Dummy.swift diff --git a/Package.swift b/Package.swift index 8f21b5e..acd27a1 100644 --- a/Package.swift +++ b/Package.swift @@ -45,5 +45,8 @@ let package = Package( .product(name: "Crypto", package: "swift-crypto"), ] ), + .testTarget( + name: "ReporterTests" + ) ] ) diff --git a/Tests/ReporterTests/Dummy.swift b/Tests/ReporterTests/Dummy.swift new file mode 100644 index 0000000..e570aea --- /dev/null +++ b/Tests/ReporterTests/Dummy.swift @@ -0,0 +1,6 @@ +import Testing + +@Test func isTrue() { + let foo = true + #expect(foo == true) +} diff --git a/scripts/build-ubuntu.sh b/scripts/build-ubuntu.sh index 7180995..8e6ab9f 100755 --- a/scripts/build-ubuntu.sh +++ b/scripts/build-ubuntu.sh @@ -20,7 +20,7 @@ if [ -d .build ] ; then fi # Run the tests. -# swift test +swift test # Build the project. swift build