trainer alternatives and similar libraries
Based on the "Other Testing" category.
Alternatively, view trainer alternatives based on common mentions on social networks and blogs.
-
Buildasaur
Automatic testing of your Pull Requests on GitHub and BitBucket using Xcode Server. Keep your team productive and safe. Get up and running in minutes. @buildasaur -
NaughtyKeyboard
DISCONTINUED. The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data. This is a keyboard to help you test your app from your iOS device. -
Mockingbird
Simplify software testing, by easily mocking any system using HTTP/HTTPS, allowing a team to test and develop against a service that is not complete or is unstable or just to reproduce planned/edge cases. -
MetovaTestKit
A collection of useful test helpers designed to ease the burden of writing tests for iOS applications. -
SnappyTestCase
iOS Simulator type agnostic snapshot testing, built on top of the FBSnapshotTestCase. -
XCTestExtensions
XCTestExtensions is a Swift extension that provides convenient assertions for writing Unit Test. -
TestKit
The easiest way to implement full BDD in your Swift iOS projects! Use plain English specs (Gherkin) to drive tests that include both UI automation and interacting with application data & state.
SaaSHub - Software Alternatives and Reviews
![SaaSHub Logo SaaSHub Logo](https://cdn-b.libhunt.com/assets/partners/saashub-small-09b040e303cf50000aca670e1c77a15c64fc5c073fbdca2665ec2b8b621efc1a.png)
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of trainer or a related project?
README
trainer
This is an alternative approach to generate JUnit files for your CI (e.g. Jenkins) without parsing the xcodebuild
output, but using the Xcode plist
or xcresult
files instead.
Some Xcode versions has a known issue around not properly closing stdout
(Radar), so you can't use xcpretty.
trainer
is a more robust and faster approach to generate JUnit reports for your CI system.
By using
trainer
, the Twitter iOS code base now generates JUnit reports 10 times faster.
xcpretty | trainer | |
---|---|---|
Prettify the xcodebuild output |
:white_check_mark: | :no_entry_sign: |
Generate JUnit reports | :white_check_mark: | :white_check_mark: |
Generate HTML reports | :white_check_mark: | :no_entry_sign: |
Works when the xcodebuild output format changed |
:no_entry_sign: | :white_check_mark: |
Show test execution duration | :white_check_mark: | :white_check_mark: |
Speed | :car: | :rocket: |
xcpretty is a great piece of software that is used across all fastlane tools. trainer
was built to have the minimum code to generate JUnit reports for your CI system.
More information about the why trainer
is useful can be found on my blog.
Use with fastlane
Update to the latest fastlane and run
fastlane add_plugin trainer
Now add the following to your Fastfile
lane :test do
scan(scheme: "ThemojiUITests",
output_types: "",
fail_build: false)
trainer(output_directory: ".")
end
This will generate the JUnit file in the current directory. You can specify any path you want, just make sure to have it clean for every run so that your CI system knows which one to pick.
If you use circle, use the following to automatically publish the JUnit reports
trainer(output_directory: ENV["CIRCLE_TEST_REPORTS"])
For more information, check out the [fastlane plugin docs](fastlane-plugin-trainer#readme).
Without fastlane
Installation
Add this to your Gemfile
gem trainer
and run
bundle install
Alternatively you can install the gem system-wide using sudo gem install trainer
.
Usage
If you use fastlane
, check out the official [fastlane plugin](fastlane-plugin-trainer#readme) on how to use trainer
in fastlane
.
Run tests
cd [project]
fastlane scan --derived_data_path "output_dir"
Convert the plist or xcresult files to junit
trainer
You can also pass a custom directory containing the plist or xcresult files
trainer --path ./something
For more information run
trainer --help
Show the test results right in your pull request
To make it easier for you and your contributors to see the test failures, you can use danger with the danger-junit plugin to automatically post the test failures on the GitHub PR.
[](assets/danger-output.png)
Thanks
After the lobbying of @steipete and the comment
How does Xcode Server parse the results?
I started investigating alternative approaches on how to parse test results.
For more information about the plist files that are being used, check out Michele's blog post.
*Note that all licence references and agreements mentioned in the trainer README section above
are relevant to that project's source code only.