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

Fix tests being excluded or skipped unnecessarily. #1778

Merged
merged 1 commit into from
Mar 30, 2017

Conversation

chalcolith
Copy link
Member

A recent change to pony_test (51c11a3) compares test names to an _exclude field using name.at(_exclude, 0). On Windows at least, String.at("", 0) always returns true (which is maybe a bug?), so all tests get excluded.

This PR only excludes tests if the _exclude field (and its related field _only) are non-empty.

@SeanTAllen
Copy link
Member

can you kill the newline on 245?

@SeanTAllen
Copy link
Member

This was a bug in general @kulibali. Don't know how I missed it. Nice catch and a perfect reason once this is merged to test the latest release scripts again.

@@ -242,19 +242,20 @@ actor PonyTest
"""
Run the given test, subject to our filters and options.
"""

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you kill this? we generally start the first line of the method abutting the doc string.

@SeanTAllen
Copy link
Member

Actually I want to get this onto master asap. Will clean up line 245 after.

@SeanTAllen SeanTAllen merged commit cd4338f into ponylang:master Mar 30, 2017
SeanTAllen added a commit that referenced this pull request Mar 30, 2017
@SeanTAllen
Copy link
Member

Thank you for this @kulibali

@chalcolith
Copy link
Member Author

You're welcome!

@SeanTAllen
Copy link
Member

I'm horribly embarrassed. the best part of breaking ponytest is that it will pass CI.

i dont know how when i can it locally it worked, i must have been in the wrong repo as i have a "ponyc" copy and a "sendence" copy.

i hang my head in shame.

@chalcolith chalcolith deleted the test_only branch March 31, 2017 17:23
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