feat: disable backend unit tests and document reasons for integration test requirements

This commit is contained in:
Marvin Zhang
2025-10-09 12:35:09 +08:00
parent 5bff8823a8
commit 44fd0809e6
4 changed files with 150 additions and 60 deletions

View File

@@ -24,14 +24,18 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: '^1.22'
- name: Run unit tests
- name: Skip backend unit tests
run: |
# Note: controllers tests are actually API/integration tests, disabled for now
# They will be re-implemented as proper integration tests later
mods=(\
"github.com/crawlab-team/crawlab/core/models/client" \
"github.com/crawlab-team/crawlab/core/models/service" \
)
for pkg in ${mods[@]}; do
go test ${pkg}
done
echo "============================================================"
echo "Backend unit tests disabled"
echo "============================================================"
echo ""
echo "Reason: Existing tests are integration tests requiring"
echo "infrastructure (MongoDB, gRPC servers), not true unit tests."
echo ""
echo "Use the proper integration test suite instead:"
echo " cd tests/"
echo " ./test-runner.py --list-specs"
echo ""
echo "See crawlab/core/BACKEND_TESTS_DISABLED.md for details."
echo "============================================================"