Regressing test campaignTo solve this
complexity, KodiSave has short functions with more comments starting with ";" in
green in Notepad++.
So a comment starting with "
; (..." is a call of the function with a particular set of parameters.
The expected result is on the
next line also as comment.
An empty line separates two consecutive regressing tests.
For example, in case the spinner
returns a
float number instead of an integer:
; (KodiMvPath "C:\\Movies\\Aliens (1986)\\fanart" "fanart" 7 5.5)
; "C:\\Movies\\Aliens (1986)\\fanart\\fanart6.jpg"
; (KodiMvPath "C:\\Movies\\Aliens (1986)\\fanart" "fanart" 7 5.1)
; "C:\\Movies\\Aliens (1986)\\fanart\\fanart5.jpg"
The usage is that you can copy-and-paste the string "(KodiMvPath "C:\\Movies\\Aliens (1986)\\fanart" "fanart" 7 5.5)"
without the double quotes in the Script-Fu console (Alt+R S C). Press Enter.
Script-Fu will reply: "C:\\Movies\\Aliens (1986)\\fanart\\fanart6.jpg"
A campaign of tests is now available before delivering a new version:
; re-test SUCCESSFULLY ran 74 tests!
Regressing tests have been organized in 74
couples of example of call of function and
the expected result on the following line.
Erro mangement is included in the regressing tests:
; (GenTvPrefix "C:\\TV Shows\\Gamer of Throne (2011)\\fanart" "fanart" idxThumb 0 1 1)
; Error: 6000 GenTvPrefix: season selector is only for banner, landscape and poster