Skip to content

Throw error when tests are found directly under Tests #301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2016

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