Skip to content

Commit d0e6652

Browse files
h4x3rotabclaude
andcommitted
refactor: make Foundry tests run by default
Remove --with-foundry flag and associated npm scripts. Foundry tests now always run as part of the standard test suite. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 7345530 commit d0e6652

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

kms/auth-eth/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
"test:foundry:all": "forge clean && forge build && forge test --ffi",
1515
"test:setup": "./scripts/setup-local-chain.sh",
1616
"test:run": "./scripts/run-tests.sh",
17-
"test:run:foundry": "./scripts/run-tests.sh --with-foundry",
1817
"test:all": "./scripts/test-all.sh",
19-
"test:all:foundry": "./scripts/test-all.sh --with-foundry",
2018
"test:cleanup": "./scripts/cleanup.sh"
2119
},
2220
"dependencies": {

kms/auth-eth/scripts/run-tests.sh

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -229,17 +229,11 @@ INTEGRATION_RESULT=$?
229229
# Clean up integration test file
230230
rm -f "$PROJECT_ROOT/integration-test.js"
231231

232-
# Optionally run Foundry tests
233-
if [ "$1" == "--with-foundry" ]; then
234-
echo ""
235-
echo -e "${BLUE}🔨 Running Foundry tests...${NC}"
236-
forge test --rpc-url $ETH_RPC_URL
237-
FOUNDRY_RESULT=$?
238-
else
239-
echo ""
240-
echo -e "${YELLOW}ℹ️ Skipping Foundry tests (use --with-foundry to include)${NC}"
241-
FOUNDRY_RESULT=0
242-
fi
232+
# Run Foundry tests
233+
echo ""
234+
echo -e "${BLUE}🔨 Running Foundry tests...${NC}"
235+
forge test --rpc-url $ETH_RPC_URL
236+
FOUNDRY_RESULT=$?
243237

244238
# Summary
245239
echo ""
@@ -250,12 +244,10 @@ if [ $INTEGRATION_RESULT -eq 0 ]; then
250244
else
251245
echo " Integration Tests: ${RED}❌ Failed${NC}"
252246
fi
253-
if [ "$1" == "--with-foundry" ]; then
254-
if [ $FOUNDRY_RESULT -eq 0 ]; then
255-
echo " Foundry Tests: ${GREEN}✅ Passed${NC}"
256-
else
257-
echo " Foundry Tests: ${RED}❌ Failed${NC}"
258-
fi
247+
if [ $FOUNDRY_RESULT -eq 0 ]; then
248+
echo " Foundry Tests: ${GREEN}✅ Passed${NC}"
249+
else
250+
echo " Foundry Tests: ${RED}❌ Failed${NC}"
259251
fi
260252

261253
# Exit with appropriate code

0 commit comments

Comments
 (0)