Testing
Docker-based regtest environment for testing with Lightning Network nodes (CLN, LND), Bitcoin Core, and databases.
Local Testing
-
Start services:
-
Copy environment configuration:
-
Edit
.envand change all service names to localhost:
CLN_HOSTNAME=localhost
CREDENTIALS_SERVER_HOSTNAME=localhost
LND_HOSTNAME=localhost
MYSQL_HOSTNAME=localhost
POSTGRES_HOSTNAME=localhost
- Run tests:
Skip integration tests with service dependencies:
SWGR_SKIP_INTEGRATION_TESTS=true
Docker-in-Docker CI Testing
For running tests inside a container with Docker socket access.
-
Start services:
-
Connect container to services network:
-
Copy environment configuration:
-
Run tests: