Skip to content

Commit

Permalink
Merge pull request #102 from nowsprinting/chore/makefile
Browse files Browse the repository at this point in the history
Fix Makefile
  • Loading branch information
nowsprinting authored Oct 14, 2024
2 parents 8beeede + 68183cd commit 2f2b647
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PACKAGE_NAME?=$(shell grep -o -E '"name": "(.+)"' $(PACKAGE_HOME)/package.json |

# Code Coverage report filter (comma separated)
# see: https://docs.unity3d.com/Packages/[email protected]/manual/CoverageBatchmode.html
PACKAGE_ASSEMBLIES?=$(shell echo $(shell find $(PACKAGE_HOME) -name "*.asmdef" -maxdepth 3 | sed -e s/.*\\//\+/ | sed -e s/\\.asmdef// | sed -e s/^.*\\.Tests//) | sed -e s/\ /,/g)
PACKAGE_ASSEMBLIES?=$(shell echo $(shell find $(PACKAGE_HOME) -name "*.asmdef" | grep -v -E "\/UnityProject~\/" | sed -e s/.*\\//\+/ | sed -e s/\\.asmdef// | sed -e s/^.*\\.Tests//) | sed -e s/\ /,/g)
COVERAGE_ASSEMBLY_FILTERS?=$(PACKAGE_ASSEMBLIES),+<assets>,-*.Tests

# -nographics` option
Expand Down Expand Up @@ -51,7 +51,7 @@ endif

define base_arguments
-projectPath $(PROJECT_HOME) \
-logFile $(LOG_DIR)/test_$(TEST_PLATFORM).log
-logFile $(LOG_DIR)/$(TEST_PLATFORM).log
endef

define test_arguments
Expand All @@ -64,7 +64,8 @@ $(TEST_CATEGORY) \
$(TEST_FILTER) \
$(ASSEMBLY_NAMES) \
-testPlatform $(TEST_PLATFORM) \
-testResults $(LOG_DIR)/test_$(TEST_PLATFORM)_results.xml \
-testResults $(LOG_DIR)/$(TEST_PLATFORM)-results.xml \
-testHelperJUnitResults $(LOG_DIR)/$(TEST_PLATFORM)-junit-results.xml \
-testHelperScreenshotDirectory $(LOG_DIR)/Screenshots
endef

Expand Down

0 comments on commit 2f2b647

Please sign in to comment.