Trim trailing whitespaces on labels and values #52
Merged
Conversation
Update test cases and test more than one CSV file. Add test case that excludes only the last row.
Codecov Report
@@ Coverage Diff @@
## master #52 +/- ##
============================================
- Coverage 42.06% 41.89% -0.17%
+ Complexity 178 176 -2
============================================
Files 18 18
Lines 1222 1222
Branches 186 186
============================================
- Hits 514 512 -2
- Misses 644 646 +2
Partials 64 64
Continue to review full report at Codecov.
|
5 tasks
vgaidarji
force-pushed
the
fix-whitespace
branch
3 times, most recently
from
June 11, 2019 19:18
cbec6be to
2c6a1d0
Compare
Contributor
Author
|
Need to fix tests on Windows node in Jenkins (most probably caused by |
vgaidarji
force-pushed
the
fix-whitespace
branch
from
June 11, 2019 19:46
2c6a1d0 to
ae76e99
Compare
It's needed for test to run on Windows machines too, can't use sh step.
Remove legacy HudsonTestCase from base SeriesTestCase class
There are no booleans in source XML and test was ignored since beginning. Test for booleans will be added later if needed.
Contributor
Author
|
We can improve tests even more, but refactoring done in this PR already makes them cleaner and better organized. Changes introduced for trimming are covered with tests and shouldn't bring any issues. @skelliam I'm going to merge & release these changes soon 🎉 |
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a follow up of #45.
What has been done
windowsnode to Jenkins buildsorg.junitand removal of legacyHudsonTestCasefrom baseSeriesTestCaseclass.In Windows, if you are trying to create a csv file using echo, you will get trailing whitespace at the end of each line. For example:
output.csv will now contain a trailing space at the end of each line. Now if the user says they want to plot only "label3" (using exclusion/inclusion criteria), the parser will not find a match, because it has captured "label3 " (with a space) as the label for the row.
Screenshots
Debugging in Visual Studio code, I took screenshots of the original code grabbing the trailing space from the new test case I added.
How to test
Checklist