Skip to content
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

Move tests #8

Merged
merged 2 commits into from
Mar 18, 2016
Merged

Move tests #8

merged 2 commits into from
Mar 18, 2016

Conversation

jpsim
Copy link
Collaborator

@jpsim jpsim commented Mar 17, 2016

Addresses #3 and should help with realm/SwiftLint#555.

Note that you'll need to make a new tag in order for these changes to be available to other SPM Packages. 🙏

@jpsim
Copy link
Collaborator Author

jpsim commented Mar 17, 2016

I've tested this locally like this:

$ export PATH=/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin:"${PATH}"
$ swift build
Compiling Swift Module 'SwiftyTextTable' (1 sources)
$ swift test
Compiling Swift Module 'SwiftyTextTabletest' (1 sources)
Linking Package.xctest
Test Suite 'All tests' started at 2016-03-17 14:05:23.601
Test Suite 'Package.xctest' started at 2016-03-17 14:05:23.602
Test Suite 'SwiftyTextTableTests' started at 2016-03-17 14:05:23.602
Test Case '-[SwiftyTextTabletest.SwiftyTextTableTests testRenderCustom]' started.
Test Case '-[SwiftyTextTabletest.SwiftyTextTableTests testRenderCustom]' passed (0.005 seconds).
Test Case '-[SwiftyTextTabletest.SwiftyTextTableTests testRenderDefault]' started.
Test Case '-[SwiftyTextTabletest.SwiftyTextTableTests testRenderDefault]' passed (0.001 seconds).
Test Case '-[SwiftyTextTabletest.SwiftyTextTableTests testStripping]' started.
Test Case '-[SwiftyTextTabletest.SwiftyTextTableTests testStripping]' passed (0.000 seconds).
Test Case '-[SwiftyTextTabletest.SwiftyTextTableTests testTableObjects]' started.
+-----+-----+-------+
| foo | bar | baz   |
+-----+-----+-------+
| 1   | 2   | 3.0   |
| 11  | 22  | 33.0  |
| 111 | 222 | 333.0 |
+-----+-----+-------+
+-----+-----+-------+
| foo | bar | baz   |
+-----+-----+-------+
| 1   | 2   | 3.0   |
| 11  | 22  | 33.0  |
| 111 | 222 | 333.0 |
+-----+-----+-------+
Test Case '-[SwiftyTextTabletest.SwiftyTextTableTests testTableObjects]' passed (0.001 seconds).
Test Suite 'SwiftyTextTableTests' passed at 2016-03-17 14:05:23.609.
     Executed 4 tests, with 0 failures (0 unexpected) in 0.007 (0.007) seconds
Test Suite 'Package.xctest' passed at 2016-03-17 14:05:23.609.
     Executed 4 tests, with 0 failures (0 unexpected) in 0.007 (0.007) seconds
Test Suite 'All tests' passed at 2016-03-17 14:05:23.609.
     Executed 4 tests, with 0 failures (0 unexpected) in 0.007 (0.008) seconds

Let me know if you need me to update .travis.yml to run this on Travis before you can merge this.

@jpsim
Copy link
Collaborator Author

jpsim commented Mar 17, 2016

If I were you, I'd also remove the two prints from the unit tests to clean up the output, but I'll leave that up to you.

@scottrhoyt
Copy link
Owner

Thanks JP!

On Mar 17, 2016, at 2:06 PM, JP Simard notifications@github.com wrote:

If I were you, I'd also remove the two prints from the unit tests to clean up the output, but I'll leave that up to you.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

scottrhoyt added a commit that referenced this pull request Mar 18, 2016
@scottrhoyt scottrhoyt merged commit 0f7b719 into scottrhoyt:master Mar 18, 2016
@jpsim jpsim deleted the move-tests branch March 18, 2016 21:54
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.

2 participants