-
Notifications
You must be signed in to change notification settings - Fork 27
Getting Started
Vladislav Alekseev edited this page Sep 22, 2021
·
2 revisions
Below is a rough order of things to do to get started with Emcee.
- Build Emcee binary
git clone https://github.com/avito-tech/Emcee.gitcd Emceemake build- binary will be built into
.build/debug/Emcee-Emceefile
- Prepare web file server
- Prepare your machines that will execute tests: setup ssh authentication, install
Xcodeandlibssh2 - Generate
queue_server_configuration.jsonand upload it to the file server - Upload Emcee binary to the file server
- Write CI code that will fetch Emcee binary
curl -O Emcee http://example.com/binary/Emceechmod +x Emcee
- Write code to build your project using
xcodebuild build-for-testingcommand - Write code to ZIP and upload build artifacts, including all
xctestbundles as individual archives, to the web file server - Write code to generate
testargfile.jsonfor Emcee without tests array (to make runtime dump of the test bundle using Emcee) - Write code to get all tests from your
xctestbundles usingEmcee dumpcommand. Read more about test discovery. - Write code to generate
testargfile.jsonfor Emcee with all tests that you want to run - Write code to run tests on Emcee using
Emcee runTestsOnRemoteQueuecommand.
Please read about using plugins. For example, the flow would be:
-
On each worker, after all tests from bucket finish, your plugin will upload results to a server (e.g. Allure)
-
After
Emcee runTestsOnRemoteQueueexists, your server will have all results stored.
Huge thanks to EvgenyIv96 for preparing this guide.