Project

General

Profile

Actions

action #65939

closed

coordination #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

Added by oorlov about 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
SUSE QA - SLE 15 SP2
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

  1. 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);
  2. Implement unit tests for LibyuiHttpClient methods.
Actions

Also available in: Atom PDF