Kodi Test Suite
Is there a test suite in Kodi?
If so, how do I run it?


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.
What platform are you using? ie windows/linux/mac?

Linux is at least documented at https://github.com/xbmc/xbmc/blob/master...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...-tests.bat
There are arch specific wrappers eg x86_64 you would run https://github.com/xbmc/xbmc/blob/master...-tests.bat
It looks like it builds and runs the test suite, so fingers crossed that gets it done for you.
I'm building using Linux.

Your link worked perfectly.  Thanks for your help.

Logout Mark Read Team Forum Stats Members Help
Kodi Test Suite0
This forum uses Lukasz Tkacz MyBB addons.