I'm looking to test my Xcode project using the default file set up XCTestCase
... but I need to test it against a service that will need to be started before the test and stopped after the test. I was hoping to start and end it within the setUpWithError
and tearDownWithError
methods but I don't know how. Is there a way I could run commands from the testing environment?
Basically I want to figure out where it's executing from ls
one time, move my files over, and then I can go through starting the service setUpWithError
, running the tests, and then ending the service tearDownWithError
.
Specifically the service runs a Docker image and I use a Makefile to make it a simple command. I just want to start and end it from the test environment.
Thanks