Update test
This commit is contained in:
@@ -37,11 +37,11 @@ TEST_OUTPUT=$(dotnet test src/Managing.Workers.Tests/Managing.Workers.Tests.cspr
|
||||
--logger "console;verbosity=detailed" 2>&1)
|
||||
|
||||
# Check if test passed
|
||||
if echo "$TEST_OUTPUT" | grep -q "Passed.*1"; then
|
||||
if echo "$TEST_OUTPUT" | grep -q "Passed: 1"; then
|
||||
echo -e "${GREEN}✅ Performance test passed!${NC}"
|
||||
else
|
||||
echo -e "${RED}❌ Performance test failed!${NC}"
|
||||
echo "$TEST_OUTPUT"
|
||||
echo "$TEST_OUTPUT" | tail -30
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -53,11 +53,11 @@ VALIDATION_OUTPUT=$(dotnet test src/Managing.Workers.Tests/Managing.Workers.Test
|
||||
--logger "console;verbosity=detailed" 2>&1)
|
||||
|
||||
# Check if validation tests passed
|
||||
if echo "$VALIDATION_OUTPUT" | grep -q "Passed.*2"; then
|
||||
if echo "$VALIDATION_OUTPUT" | grep -q "Passed: 2"; then
|
||||
echo -e "${GREEN}✅ Business logic validation tests passed!${NC}"
|
||||
else
|
||||
echo -e "${RED}❌ Business logic validation tests failed!${NC}"
|
||||
echo "$VALIDATION_OUTPUT"
|
||||
echo "$VALIDATION_OUTPUT" | tail -30
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -151,11 +151,11 @@ TWO_SCENARIOS_OUTPUT=$(dotnet test src/Managing.Workers.Tests/Managing.Workers.T
|
||||
--logger "console;verbosity=detailed" 2>&1)
|
||||
|
||||
# Check if two-scenarios test passed
|
||||
if echo "$TWO_SCENARIOS_OUTPUT" | grep -q "Passed.*1"; then
|
||||
if echo "$TWO_SCENARIOS_OUTPUT" | grep -q "Passed: 1"; then
|
||||
echo -e "${GREEN}✅ Two-scenarios performance test passed!${NC}"
|
||||
else
|
||||
echo -e "${RED}❌ Two-scenarios performance test failed!${NC}"
|
||||
echo "$TWO_SCENARIOS_OUTPUT"
|
||||
echo "$TWO_SCENARIOS_OUTPUT" | tail -30
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user