diff --git a/Tests/DataCapturingTests/Capturing/BackgroundMeasurementTests.swift b/Tests/DataCapturingTests/Capturing/BackgroundMeasurementTests.swift index 5e557d1..4c2ee8d 100644 --- a/Tests/DataCapturingTests/Capturing/BackgroundMeasurementTests.swift +++ b/Tests/DataCapturingTests/Capturing/BackgroundMeasurementTests.swift @@ -21,7 +21,10 @@ import Testing import Combine @testable import DataCapturing -@Test("Does a Measurement survive the App going to Background! After the App has been paused very long iOS will kill it. This deletes the paused state in memory. This test checks that recreating this state from the database is successful.") +@Test( + "Does a Measurement survive the App going to Background! After the App has been paused very long iOS will kill it. This deletes the paused state in memory. This test checks that recreating this state from the database is successful.", + .tags(.capturing) +) func measurementSurvivesBackground() async throws { let sensorCapturer = SmartphoneSensorCapturer(motionManager: MockSensorManager()) let locationCapturer = SmartphoneLocationCapturer() { @@ -48,7 +51,10 @@ func measurementSurvivesBackground() async throws { try measurementAfterPause.stop() } -@Test("Tests whether using a reduced update interval for location update events, works as expected.") +@Test( + "Tests whether using a reduced update interval for location update events, works as expected.", + .tags(.capturing) +) func withLowerUpdateInterval_HappyPath() async throws { let sensorCapturer = SmartphoneSensorCapturer(accelerometerInterval: 1.0, gyroInterval: 1.0, directionsInterval: 1.0, motionManager: MockSensorManager()) var messageLog = [String]() diff --git a/Tests/DataCapturingTests/Capturing/LocationCapturerTests.swift b/Tests/DataCapturingTests/Capturing/LocationCapturerTests.swift index 9069771..4adc066 100644 --- a/Tests/DataCapturingTests/Capturing/LocationCapturerTests.swift +++ b/Tests/DataCapturingTests/Capturing/LocationCapturerTests.swift @@ -21,8 +21,8 @@ import Testing import Foundation import Combine -/// Test that location capturer triggers the correct messages. -@Test func locationCapturerHappyPath() async throws { +@Test("Test that location capturer triggers the correct messages.", .tags(.capturing)) +func locationCapturerHappyPath() async throws { // Arrange let oocut = SmartphoneLocationCapturer(lifecycleQueue: DispatchQueue(label: "locationCapturer")) { return MockLocationManager() diff --git a/Tests/DataCapturingTests/Capturing/MeasurementTests.swift b/Tests/DataCapturingTests/Capturing/MeasurementTests.swift index caba34a..52d8723 100644 --- a/Tests/DataCapturingTests/Capturing/MeasurementTests.swift +++ b/Tests/DataCapturingTests/Capturing/MeasurementTests.swift @@ -27,6 +27,7 @@ import Combine - Author: Klemens Muthmann */ +@Suite(.tags(.capturing)) struct MeasurementTests { /// `MeasurementImpl` used for testing. diff --git a/Tests/DataCapturingTests/Capturing/SensorCapturerTest.swift b/Tests/DataCapturingTests/Capturing/SensorCapturerTest.swift index 790066c..5bd7e37 100644 --- a/Tests/DataCapturingTests/Capturing/SensorCapturerTest.swift +++ b/Tests/DataCapturingTests/Capturing/SensorCapturerTest.swift @@ -20,7 +20,10 @@ import Testing import Combine @testable import DataCapturing -@Test("Tests that the SensorCapturer works as expected, at least for the happy path.") +@Test( + "Tests that the SensorCapturer works as expected, at least for the happy path.", + .tags(.capturing) +) func sensorCapturerHappyPath() async { // Arrange let oocut = SmartphoneSensorCapturer(motionManager: MockSensorManager())