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
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin18.0.0
Additional Detail from JIRA
Votes
0
Component/s
Package Manager
Labels
Bug
Assignee
None
Priority
Medium
md5: 3c9a9df66e3c22015e8cf4d060250389
Issue Description:
The problem
`swift test --generate-linuxmain` is a wonderful aid for ensuring that all tests are ran as part of Linux test suites. I've recently added this command to my project's continuous integration in order to detect if any tests are missing from the Linux environment. Unfortunately, it looks like the `swift test --generate-linuxmain` command's output is not guaranteed to be consistent across multiple invocations, resulting in flaky continuous integration jobs.
Specifically, `LinuxMain.swift`'s imports and `tests +=` statements are what appear to shuffle in their order.
This happens when there are multiple test targets in a single package.
Request
Successive invocations of `swift test --generate-linuxmain` with the same code should not result in different output each time. I suspect sorting the output would help.
The text was updated successfully, but these errors were encountered:
Environment
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin18.0.0
Additional Detail from JIRA
md5: 3c9a9df66e3c22015e8cf4d060250389
Issue Description:
The problem
`swift test --generate-linuxmain` is a wonderful aid for ensuring that all tests are ran as part of Linux test suites. I've recently added this command to my project's continuous integration in order to detect if any tests are missing from the Linux environment. Unfortunately, it looks like the `swift test --generate-linuxmain` command's output is not guaranteed to be consistent across multiple invocations, resulting in flaky continuous integration jobs.
Specifically, `LinuxMain.swift`'s imports and `tests +=` statements are what appear to shuffle in their order.
This happens when there are multiple test targets in a single package.
Request
Successive invocations of `swift test --generate-linuxmain` with the same code should not result in different output each time. I suspect sorting the output would help.
The text was updated successfully, but these errors were encountered: