Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3037a07

Browse files
committedSep 30, 2022
Add unit test job in Makefile
1 parent 9d8e9a7 commit 3037a07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ build:
1212

1313
.PHONY: test
1414
test:
15+
@echo Running unit tests
16+
swift build --build-tests --triple wasm32-unknown-wasi -Xswiftc -Xclang-linker -Xswiftc -mexec-model=reactor -Xlinker --export=main
17+
node --experimental-wasi-unstable-preview1 scripts/test-harness.js ./.build/wasm32-unknown-wasi/debug/JavaScriptKitPackageTests.wasm
18+
@echo Running integration tests
1519
cd IntegrationTests && \
1620
CONFIGURATION=debug make test && \
1721
CONFIGURATION=debug SWIFT_BUILD_FLAGS="-Xswiftc -DJAVASCRIPTKIT_WITHOUT_WEAKREFS" make test && \

0 commit comments

Comments
 (0)
Please sign in to comment.