Actions
action #65939
closedcoordination #36712: [saga] Use YaST specific framework for GUI testing
coordination #62726: [functional][y][epic] Create separate Ruby Gem representing libyui Client API
[functional][y] Add unit tests for public api methods in libyui_client
Start date:
2020-04-21
Due date:
2020-06-16
% Done:
0%
Estimated time:
8.00 h
Description
Currently, there are 'integration' tests, that mock HTTP requests and validate widgets methods.
The issue with this approach is that it does not test each 'unit' separately. So, it will take some time to investigate what exactly failed in case of test failure.
Task¶
- Implement unit tests for widgets methods (e.g. button.click, checkbox.select etc.) by stubbing internal method calls (Please see RSpec mocks and stubs https://relishapp.com/rspec/rspec-mocks/docs);
- Implement unit tests for LibyuiHttpClient methods.
Actions