Debian Codegraph @

tools/build-tool/data/ios/services/test_fairy/README.adoc

raw
1 ## test_fairy
2
3 This service integrates _Castle Game Engine_ applications with https://www.testfairy.com/[Test Fairy]. It's a nice way to distribute mobile applications to your testers, gather logs, feedback etc.
4
5 On iOS, it's a nice alternative to TestFlight. Unlike TestFlight, you do not need Apple to accept your test applications (but you will still need to sign them with a developer key signed by Apple).
6
7 Using this service is *not* necessary to use https://www.testfairy.com/[Test Fairy] in a basic way. That is, you can distribute your apps through TestFairy without integrating their SDK.
8
9 Still, using this service enhances the experience. You will receive logs, videos, user can submit feedback (from the mobile application to your TestFairy application) and more. There's no need to do anything on the Pascal side, you merely use this service. See https://docs.testfairy.com/iOS_SDK/Integrating_iOS_SDK.html for a description of benefits.
10
11 Use the `CastleTestFairy` unit and call `TTestFairy.InitializeRemoteLogging;` to initialize remote logging to TestFairy on iOS. This way you will see all CGE logs in the TestFairy session report. This is necessary now only on iOS (on Android, all logs are automatically collected), but you can safely call it on all platforms.
12
13 Note about `CastleTestFairy` unit: on iOS, use it *only* if you use `test_fairy` service, otherwise the code will not even link.
14
15 ### Parameters
16
17 You need to specify _"SDK App Token"_ inside https://castle-engine.io/project_manifest[CastleEngineManifest.xml] when using this service:
18
19 [source,xml]
20 ----
21 <service name="test_fairy">
22 <parameter key="sdk_app_token" value="SDK-yyyyyy" />
23 </service>
24 ----
25
26 Get your "SDK App Token" from your https://app.testfairy.com/settings[TestFairy dashboard settings].
27
28 ## Optional: Remote logging of NSLog
29
30 The `TTestFairy.InitializeRemoteLogging;`, mentioned above, makes all CGE logs generated by Pascal (`WritelnLog`) stored in TestFairy. But you may want more.
31
32 Various iOS services written in Objective-C generate additional logs using the `NSLog` routine. To send *these* logs to TestFairy too, right now you have to tweak the engine code: in `tools/build-tool/data/ios/xcode_project/cge_project_name/CgeUtils.h` uncomment the line:
33
34 ```
35 #define SEND_NSLOG_TO_TEST_FAIRY
36 ```
37
38 Then just rebuild the application for iOS, as usual. You will see more logs.