Skip to content

Commit 1d4fe40

Browse files
Ricardo AlonzoRicardo Alonzo
authored andcommitted
feature: add initial integration tests
1 parent a25693e commit 1d4fe40

File tree

10 files changed

+7808
-2548
lines changed

10 files changed

+7808
-2548
lines changed

.gitignore

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
node_modules
2-
coverage
2+
coverage
3+
4+
# Hardhat / hardhat-tron build output (generated, not committed)
5+
/artifacts/
6+
/cache/
7+
/cache_hardhat-tron/
8+
**/artifacts-tron/
9+
**/cache-tron/
10+
11+
# Docker Tron node data
12+
datadir/
13+
logs/

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,13 +647,30 @@ npm run lint:fix
647647
### Testing
648648

649649
```bash
650-
# Run tests
650+
# Run unit tests
651651
npm test
652652

653-
# Run tests with coverage
653+
# Run unit tests with coverage
654654
npm run test:coverage
655655
```
656656

657+
### Integration Testing
658+
659+
Integration tests run against a local Tron private network in Docker. They exercise full end-to-end flows: account derivation, TRX transfers, TRC20 token transfers, fee quoting, message signing, read-only accounts, disposal, and fee limits.
660+
661+
**Prerequisites:** Docker must be installed and running.
662+
663+
```bash
664+
# Start the local Tron node
665+
npm run test:integration:docker:up
666+
667+
# Run integration tests
668+
npm run test:integration
669+
670+
# Stop the local Tron node
671+
npm run test:integration:docker:down
672+
```
673+
657674
## 📜 License
658675

659676
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.

0 commit comments

Comments
 (0)