Hi everyone
I want to know how can i run test for the swift in the terminal and how will i be able to know that my all test cases passed successfully or not.
Assuming you have a Swift package (not an Xcode project) you can run swift test
in your package directory. That will run the tests and if you're a human you can read the output, if you're a machine it will return an exit code of 0
if successful
1 Like