These test scripts validate the Scanbot SDK integration across all supported languages and detect common issues like licensing checks and compilation errors.
- Check compilation: Verify code builds correctly
- Validate license: Ensure license key works
- Test commands: Run SDK functions to catch integration issues
- Quick validation: Fast checks for development workflow
Note: No asserts are setup to validate the tests results.
test-scripts/
├── test-python.sh # Python SDK tests
├── test-java.sh # Java SDK tests
├── test-nodejs.sh # Node.js SDK tests
├── test-c.sh # C SDK tests
├── run-all-tests.sh # Run all tests
└── test-images/ # Test image files
export SCANBOT_LICENSE="your-license-key-here"
export SDK_VERSION=0.810.7docker build \
--build-arg SDK_VERSION=$SDK_VERSION \
--build-arg ARCH=linux-aarch64 \
--build-arg SCANBOT_LICENSE=$SCANBOT_LICENSE \
--target base \
-t scanbot-test .Single test:
docker run --rm \
--env SCANBOT_LICENSE=$SCANBOT_LICENSE \
--workdir /workspaces/scanbot-sdk-example-linux \
scanbot-test \
/tests/test-python.shAll tests:
docker run --rm \
--env SCANBOT_LICENSE=$SCANBOT_LICENSE \
--workdir /workspaces/scanbot-sdk-example-linux \
scanbot-test \
/tests/run-all-tests.shEach test validates these SDK functions:
- Barcode scanning - QR codes, barcodes
- Document scanning - Document detection
- Data extraction - Credit cards, checks, MRZ, VIN
- OCR - Text recognition
- Document analysis - Multi-page, cropping
- Text parsing - MRZ, barcode document parsing