Project

General

Profile

action #71122

Updated by riafarov over 3 years ago

The following parts of yast-metapackage-handler package code, are considered to be the basis for the unit test: 

 {{collapse(src/modules/OneClickInstall.rb) 
 Load 
 xpath_element 
 xpath_text 
 GetRequiredRepositories 
 GetNonRequiredRepositories 
 SetNonRequiredRepository 
 SetRequiredRepositories 
 GetRepositoryName 
 GetRepositorySummary 
 GetRepositoryDescription 
 GetRequiredSoftware 
 GetRequiredPackages 
 GetRequiredPatterns 
 GetRequiredRemoveSoftware 
 SetRequiredSoftware 
 GetNonRequiredSoftware 
 GetNonRequiredRemoveSoftware 
 SetNonRequiredSoftware 
 SetRequiredSoftwares 
 GetSoftwareSummary 
 GetSoftwareDescription 
 HaveRepositories 
 HaveSoftware 
 HavePackagesToInstall 
 HavePatternsToInstall 
 HaveRepositoriesToInstall 
 HaveRemovalsToInstall 
 HaveRemovals 
 HaveAnythingToDo 
 HaveAnyRecommended 
 makeXMLFriendly 
 fromXMLFriendly 
 SetupXML 
 ToXML 
 FromXML 
 }} 

 {{collapse(src/modules/OneClickInstallWorkerFunctions.rb) 
 FuzzyMatch 
 DeDupe 
 AddRepositories 
 InitSlideShow 
 InstallPackages 
 InstallPatterns 
 RemovePackages 
 RemoveAddedRepositories 
 }} 

 There is already small part of the unit test, waiting to be reviewed in PR: https://github.com/yast/yast-metapackage-handler/pull/22 
 The objective is to create various smaller tickets for completing the unit test of the above functions. The second file contains more complicated functions. 
 Helpful links: 
 Builtins https://github.com/yast/yast-ruby-bindings/blob/master/src/ruby/yast/builtins.rb 
 Ops https://github.com/yast/yast-ruby-bindings/blob/master/src/ruby/yast/ops.rb 
 deep_copy https://github.com/yast/yast-ruby-bindings/blob/master/src/ruby/yast/yast.rb 
 PackageSlideShow https://github.com/yast/yast-packager/blob/master/src/modules/PackageSlideShow.rb 
 Progress https://github.com/yast/yast-yast2/blob/master/library/wizard/src/modules/Progress.rb 
 SlideShow https://github.com/yast/yast-yast2/blob/master/library/packages/src/modules/SlideShow.rb 

 As an outcome we should get the list of methods to cover in each of the mentioned classes. 

Back