-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[swift-build] update swift build --init library
tests format
#214
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
Conversation
swift --init library
tests formatswift build --init library
tests format
@modocache Do you have any thoughts about files and classes naming for tests? |
I agree, a TestCase suffix seems like a good idea. |
After thinking for some time about it, I think My reasoning:
Test Case '-[GetTestSuite.VersionGraphTests testComplexVersionRestrictedGraph]' passed (0.001 seconds). Conclusion |
I know executable tests are not supported right now but is it possible to somehow add a test to catch this in future? |
Yes definitely! I even think I know how do that :)
But I thought it would be in next PR. This is broken on Linux so I would prefer to get it merged now |
You mean a |
The convention for |
Suits me. |
@mxcl Done |
@swift-ci Please test |
LGTM |
Update test to new format. The old format doesn't work on Linux any more.
run
sb --init library
inNewInit
folderThis genere these File:
//LinuxMain.swift
//Tests/NewInit/NewInit.swift
Notes:
The only think I don't like here that
NewInit
TestCase class and file has the same name as source file.I think it would be nice to add a suffix, like:
NewInitTests
orNewInitTestCase
I see that in SwiftPM we use both naming conventions.