-
Notifications
You must be signed in to change notification settings - Fork 28
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.git
cd Emcee
make build
- binary will be built into
.build/debug/Emcee
-Emcee
file
- Prepare web file server
- Prepare your machines that will execute tests: setup ssh authentication, install
Xcode
andlibssh2
- Generate
queue_server_configuration.json
and 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/Emcee
chmod +x Emcee
- Write code to build your project using
xcodebuild build-for-testing
command - Write code to ZIP and upload build artifacts, including all
xctest
bundles as individual archives, to the web file server - Write code to generate
testargfile.json
for Emcee without tests array (to make runtime dump of the test bundle using Emcee) - Write code to get all tests from your
xctest
bundles usingEmcee dump
command. Read more about test discovery. - Write code to generate
testargfile.json
for Emcee with all tests that you want to run - Write code to run tests on Emcee using
Emcee runTestsOnRemoteQueue
command.
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 runTestsOnRemoteQueue
exists, your server will have all results stored.
Huge thanks to EvgenyIv96 for preparing this guide.