iOS
There is one available mode for IOS testing.
To start testing, you must first configure your repository.
Please adhere to the repository naming convention:
⚠️ One application per repository!
Follow this naming convention:
(courseCode)-ios-hw[0..9]
Examples:
- ICD0022-ios-hw0
- ICD0022-ios-hw7
Configure your repository
1. Enable Shared Runner
Go to Settings → CI/CD → Runners → Expand → Enable Shared Runners
2. Add user @testlab with Maintainer permission to the repository
Navigate to Members, add @testlab
with Maintainer permission, then click Invite.
3. Commit your application source code
⚠️ Ensure there is only one app per repository.
Your repository structure should resemble the following. Then click "Setup CI/CD"
4. Based on your requirements, replace the script of your .gitlab-ci.yml file
Click "Configure pipeline."
Depending on the test you'd like to run, click the link below and copy the .gitlab-ci.yml script to your .gitlab-ci.yml, then commit it.
Screenshot test - Use it to verify that your app compiles and runs on devices. It is
good for testing Single Page Applications.
XCUITest test - Use it to run your written XCUITest tests on devices.
5. Next, navigate to CI/CD and initiate your job
Go to Build-> Jobs and click ▶️
After clicking ▶️, the pipeline will start. You must manually start the pipeline each time you commit and push your code to GitLab. The pipeline usually takes between 5 to 30 minutes to run. You'll receive your test results at your UNIID email.
6. Congratulations, you did it! 🤩🤩
If you don't receive your results within 30 minutes, contact me on Teams (Kevin Janson) or at testlab@ttu.ee.
Happy coding!!
Screenshot Testing
As for 2025 the screenshot testing is not available for IOS. Due to the fact that the devices are not available for this
type of testing.
See more
XCUITest Testing
This type of testing requires you to write XCUITest tests. Copy this file to your .gitlab-ci.yml script to start using this service.
testIOS:
# Job configuration
allow_failure: false
when: manual
script:
# Run testing script
- >
curl -X POST https://jenkins.testlab.ttu.ee/buildByToken/buildWithParameters?job=IOS
-F token=gW0QBcGUftU5RJNVPlr3Fkrh8D7WSk5s
-F projectURL=${CI_PROJECT_URL}
-F email=${GITLAB_USER_EMAIL}
-F testingType=XCUITEST
-F repositoryName=${CI_PROJECT_NAME}
🔗 Check out these links 🔗