-
Notifications
You must be signed in to change notification settings - Fork 12
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
Remove old testsuite #82
Conversation
Since it is fragile and is somehow stopping the YaST evolution, apart from causing compatibility problems with Ruby 2.7 and making Travis fail. From now on, all new/edited code should be properly tested not relying in the log output and, ideally, using RSpec.
Hey @yast/samba-team, friendly ping here :) Although I requested review from other YaST team members, I'd like to have a review from you too :) Thanks in advance! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The remaining tests in Also, we BuildRequire several samba packages, probably unnecessarily. |
lgtm |
✔️ Public Jenkins job #20 successfully finished |
Problem
The legacy test suite, which makes testing by output to log, is a blocker for the evolution of YaST and is causing compatibility problems with Ruby 2.7 failing to build in Staging:J.
Solution
The YaST team has been trying to migrate as much as possible all legacy YaST module test suites to RSpec. However, among others this module is mainly written in Perl and we didn't find a good Perl-mocking tool to make that it less fragile and more useful.
Looking at the history of changes it can be seen that those tests (and the related code) have been mostly untouched for ages, which helps to make the decision of getting rid of them and move on.
So, this PR completely deletes the old test suite without any replacement. Of course, it can be checked any time whether needed thanks to the version control history. Ideally, every new change from now on should be tested with RSpec, although it still needed either, to migrate the existing Perl code to Ruby or find out the way to mock it properly in order to use RSpec for writing the tests.
Other changes
BuildRequire
s has been also updatedThanks to @mvidner for the clue
See also yast/yast-samba-client#84