Kodi Test Suite - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: Kodi Test Suite (/showthread.php?tid=372367) |
Kodi Test Suite - DeltaMikeCharlie - 2023-03-06 Is there a test suite in Kodi? If so, how do I run it? Background: I've just made some changes to my local development copy of Kodi. I have also found a directory with what seems to a be a collection of test cases residing in '/xbmc-master/xbmc/test'. I would like to be a good citizen and add some test cases for my changes. Because the change that I made related to date formatting, I wanted to add a test in '/xbmc-master/xbmc/test/TestDateTime.cpp' to ensure that there was a methodical way for future/automated testers to ensure that the changes work as planned and that nothing else got broken. I could just change 'TestDateTime.cpp' and hope for the best, however, I would really like to be able to execute the test too. RE: Kodi Test Suite - Fuzzard - 2023-03-06 What platform are you using? ie windows/linux/mac? Linux is at least documented at https://github.com/xbmc/xbmc/blob/master/docs/README.Linux.md#8-test-suite For mac it should be the same target (kodi-test), depending on if you are using Xcode or Makefiles. Makefiles on macos should be the same as linux i believe. In xcode it will just be a target you can select to build/execute as normal For windows i dont have first hand info, but i imagine it will be something like executing https://github.com/xbmc/xbmc/blob/master/tools/buildsteps/windows/run-tests.bat There are arch specific wrappers eg x86_64 you would run https://github.com/xbmc/xbmc/blob/master/tools/buildsteps/windows/x64/run-tests.bat It looks like it builds and runs the test suite, so fingers crossed that gets it done for you. RE: Kodi Test Suite - DeltaMikeCharlie - 2023-03-06 I'm building using Linux. Your link worked perfectly. Thanks for your help. |