-
Notifications
You must be signed in to change notification settings - Fork 90
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
Trim trailing whitespaces on labels and values #52
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.
|
cbec6be
to
2c6a1d0
Compare
Need to fix tests on Windows node in Jenkins (most probably caused by
|
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.
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 🎉 |
This is a follow up of #45.
What has been done
windows
node to Jenkins buildsorg.junit
and removal of legacyHudsonTestCase
from baseSeriesTestCase
class.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