You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -467,7 +467,9 @@ Then, open ``MatrixSDK.xcworkspace``.
467
467
468
468
Tests
469
469
=====
470
-
The tests in the SDK Xcode project are both unit and integration tests.
470
+
The tests in the SDK Xcode project are both unit and integration tests.
471
+
472
+
Unit tests class use the suffix "UnitTests" to differentiate them. A unit test is a test that does not make any HTTP requests or uses mocked HTTP requests.
471
473
472
474
Out of the box, the tests use one of the homeservers (located at
473
475
http://localhost:8080) of the "Demo Federation of Homeservers"
@@ -491,6 +493,22 @@ Every time you want to launch these test homeservers, type::
491
493
You can now run tests from the Xcode Test navigator tab or select the
492
494
MatrixSDKTests scheme and click on the "Test" action.
493
495
496
+
Test Plans
497
+
----------
498
+
We have test plans in MatrixSDKTests/TestPlans for the macOS target to run tests separately or with different configurations.
499
+
500
+
AllTests
501
+
Default test plan to run all tests.
502
+
503
+
AllTestsWithSanitizers
504
+
Run all tests with 2 configurations "ASan + UBSan" and "TSan + UBSan". "UBSan" for Unexpected Behavior Sanitizer. "ASan" for Address Sanitizier. "Tsan" for Thread Sanitizer. This setup was adviced at WWDC2019 (https://developer.apple.com/videos/play/wwdc2019/413?time=2270). This test plan requires 2 builds that are slow to run.
505
+
506
+
UnitTests
507
+
Test plan for all unit tests.
508
+
509
+
UnitTestsWithSanitizers
510
+
All unit tests with 2 configurations "ASan + UBSan" and "TSan + UBSan" described above.
0 commit comments