baktainer/app/bin/ci-test
James Paterni 8db5004eea
Some checks are pending
Test and Build Docker Image / test (push) Waiting to run
Test and Build Docker Image / build (push) Blocked by required conditions
Add comprehensive RSpec testing infrastructure and enhance CI/CD pipeline
- Implement complete test suite with 63 examples (49 unit + 14 integration tests)
- Add RSpec, FactoryBot, WebMock, and SimpleCov testing dependencies
- Create mocked integration tests eliminating need for real Docker containers
- Fix SQLite method signature to accept login/password parameters
- Enhance container discovery to handle nil labels gracefully
- Add test coverage reporting and JUnit XML output for CI
- Update GitHub Actions workflow to run tests before Docker builds
- Add Ruby 3.3 setup with gem caching for faster CI execution
- Create CI test script and comprehensive testing documentation
- Ensure Docker builds only proceed when all tests pass

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-13 23:12:59 -04:00

17 lines
No EOL
441 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
# Simple CI test runner for GitHub Actions
echo "🧪 Running RSpec test suite for CI..."
# Create tmp directory if it doesn't exist
mkdir -p tmp
# Run RSpec with progress output and JUnit XML for CI reporting
bundle exec rspec \
--format progress \
--format RspecJunitFormatter \
--out tmp/rspec_results.xml
echo "✅ All tests passed!"
echo "📊 Test results saved to tmp/rspec_results.xml"