Add tests folder when testing flag is active.
Some checks failed
Emscripten Build / Build_and_Deploy_Web_Build (push) Successful in 7m45s
Emscripten Build / UnitTesting (push) Failing after 23s

This commit is contained in:
AMay 2026-05-01 00:18:58 -05:00
parent c7fafce20f
commit bf139fdb86
4 changed files with 8 additions and 4 deletions

View File

@ -48,8 +48,7 @@ jobs:
- name: Build and Run Unit Tests
run: |
pwd
ln -s /assets "Adventures in Lestoria/assets"
ls
ln -s /assets "/workspace/AMay/AdventuresInLestoria/bin/assets"
./test.sh
./runTest.sh
- name: Send Webhook Update

2
.gitignore vendored
View File

@ -425,8 +425,10 @@ desktop.ini
/Adventures in Lestoria Tests/x64/Unit Testing
/x64/Unit Testing
/Adventures in Lestoria/assets/2.10
/Adventures in Lestoria/assets/assets.zip
/Adventures in Lestoria/assets/items/Bird_s Treasure.png
tools
/dotnet-tools.json
/Adventures in Lestoria/assets.zip

Binary file not shown.

View File

@ -100,8 +100,11 @@ endif()
list(APPEND SOURCE_CXX_FILES ${SOURCE_CXX_FILES2})
if(NOT TEST_ONLY)
list(REMOVE_ITEM SOURCE_CXX_FILES "${SOURCE_CXX_SRC_DIR}/tests/*.cpp")
if(TEST_ONLY)
file(
GLOB SOURCE_CXX_FILES
"${SOURCE_CXX_SRC_DIR}/tests/*.cpp"
)
endif()
# Search in the "cmake" directory for additional CMake modules.