PyxisSociety/SANDAL2

Adding Test coverage

Klevh opened this issue · 4 comments

Klevh commented
Adding Test coverage
Klevh commented

Test coverage working but not showing the same number as locally (50% locally, 18% online) due to some tests not working online but working locally.

Klevh commented

SDL_Init(SDL_INIT_VIDEO) does not work on gitlab-ci as it does not have a screen. It was replaced with SDL_Init(SDL_INIT_EVENTS) but it still does not show 51% of coverage as it does locally.

Klevh commented

SDL_Init le resolved but the problem remains with SDL_CreateWindow/Renderer. I'll correct it as soon as I can with the same macro by creating a static version of SDL_GetWindowID in source files and changing the SLD_Window* attribute of the Window structure with a pointer to itself

Klevh commented

Done with a fake_SDL_... for all necessary functions and a #define SDL_... fake_SDL_...