https://github.com/iljapavlovs/bitcoin-tx-ta
Sample for testing Bitcoin transactions
https://github.com/iljapavlovs/bitcoin-tx-ta
Last synced: 30 days ago
JSON representation
Sample for testing Bitcoin transactions
- Host: GitHub
- URL: https://github.com/iljapavlovs/bitcoin-tx-ta
- Owner: iljapavlovs
- Created: 2020-12-04T12:18:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-04T12:24:42.000Z (over 4 years ago)
- Last Synced: 2025-02-09T02:26:09.396Z (3 months ago)
- Language: Java
- Size: 60.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Test Infrastructure
Self-contained tests which spin up 2 Bitcoin nodes in Docker containers using [Testcontainers](https://www.testcontainers.org/)
* Containers automatically start and quit during test execution, guaranteeing clean state for the tests
* For each test method clean version of containers is startedJust run
```bash
./gradlew clean test allureReport
```#### Running Nodes separately for local development
Or you can start containers separately
```bash
docker-compose -f src/test/resources/docker/docker-compose.yml up
```### Reporting
[Allure](http://allure.qatools.ru/) report by default is generated at `build/reports/allure-report`### What was left out due to limited time:
* better BDD support - add Cucumber-JVM or Spock, and therefore better reporting with detailed test steps
* testing negative cases (e.g. sending bitcoins when there are any)
* verifying status codes, error response - with current implementation it's not possible. Need to rewrite code to more low level, add HTTP interceptor. However, current implementation is much simpler and easier to use