axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
733 stars 181 forks source link

Enable running `unit-tests` in GitHub workflow #1871

Closed smilediver closed 1 month ago

smilediver commented 1 month ago

Trying to enable running unit-tests in GitHub workflow.

smilediver commented 1 month ago

Windows is hitting #1872 issue.

@halx99 Can you help me in setting up running on macOS? I can't figure out how to insert arch for the command line here: https://github.com/smilediver/axmol/blob/ade1eba39c25f3d1a3909019db4fb9cdaf3067ba/.github/workflows/build.yml#L124

And I also have no idea why Linux fails. I don't know if the path to exe is wrong or something else...

halx99 commented 1 month ago

sure

halx99 commented 1 month ago

The linux will crash due to initialize FileUtilsLinux too early before entering main entrypoint

halx99 commented 1 month ago

does the doctest support run tests in main function?

halx99 commented 1 month ago

image

smilediver commented 1 month ago

Thanks for getting this to work!