Javal Nandajavalnanda.comยทJan 30, 2024Preventing Code Execution While Running Tests from CLI for Swift PackageIdeally, you would not require conditional logic in your production code to check if tests are running or the main app target is running. But, there are situations where you can't get around it in case of Integration tests or UI Tests. There are vari...89 readsTestingAdd a thoughtful commentNo comments yetBe the first to start the conversation.