Fix command to generate tests on Linux (#8)

This commit is contained in:
Tim authored and Cory Benfield committed 2018-05-20 13:16:37 +01:00
1 parent 36321d080e
commit 80963ee509
1 file changed
+1 -1
+1 -1
View File
@@ -65,7 +65,7 @@ We require that your commit messages match our template. The easiest way to do t
### Test on Linux
SwiftNIO uses XCTest to run tests on both macOS and Linux. While the macOS version of XCTest is able to use the Objective-C runtime to discover tests at execution time, the Linux version is not. For this reason, whenever you add new tests you will want to run a script that generates the hooks needed to run those tests on Linux, or our CI will complain that the tests are not all present on Linux. To do this, merely execute `ruby generate_linux_tests.rb` at the root of the package and check the changes it made.
SwiftNIO uses XCTest to run tests on both macOS and Linux. While the macOS version of XCTest is able to use the Objective-C runtime to discover tests at execution time, the Linux version is not. For this reason, whenever you add new tests you will want to run a script that generates the hooks needed to run those tests on Linux, or our CI will complain that the tests are not all present on Linux. To do this, merely execute `ruby scripts/generate_linux_tests.rb` at the root of the package and check the changes it made.
## How to contribute your work