Skip to content

Conversation

@bhargavg
Copy link
Contributor

If tests are directly under Tests directory, swift test will fail because it tries to unwrap a nil value.

Fixed it by throwing TestsExecutableNotFound error.

If tests are directly under Tests directory, swift test will fail with
fail because it tries to unwrap a nil value.

Fixed it by adding proper guard statements
@ddunbar
Copy link
Contributor

ddunbar commented Apr 30, 2016

I verified this fixes the crash, merging since it is definitely a monotonic improvement. @mxcl can you review if there is anything else needed here?

@ddunbar ddunbar merged commit 8500541 into swiftlang:master Apr 30, 2016
@kostiakoval
Copy link
Contributor

Maybe it also would be nice to warn users that there some unused test.swift files in Tests folder? Maybe it would be better to do it when building TestModule

@mxcl
Copy link
Contributor

mxcl commented May 2, 2016

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants