hashgraph / hedera-sdk-tck

A TCK (Technology Compatibility Kit) used to verify compliant implementations of a Hedera SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hedera SDK TCK

A Technology Compatibility Kit (TCK) is a set of tools, documentation, and test suites used to verify whether a software implementation conforms to a specific technology standard or specification. The hedera-sdk-tck aims to verify compliant implementations of a Hedera SDK. It will encompass tests that validate the implmentation of consensus node software transactions and queries, performance and longevity testing.

test-driver-js

Setup

Clone repository

git clone git@github.com:hashgraph/hedera-sdk-tck.git

Decide between Testnet or a local node

Testnet

  • Get a Hedera testnet account ID and private key from Hedera here
  • rename .env.testnet to .env
  • Add ECDSA account ID and private key to .env

Local node

Start a JSON-RPC server

Start only the JSON-RPC server for the SDK you want to test. The JSON-RPC server for the specified SDK will parse the JSON formatted request received by the test driver. The JSON-RPC server will execute the corresponding function or procedure associated with that method and prepare the response in JSON format to send back to the test driver.

Install and run

Install packages with npm

npm install

Run specific test file

npm run test test/account/test_CreateAccount.js

Run all tests

npm run test

Reports

After running npm run test the generated HTML and JSON reports can be found in the mochawesome-report folder

Support

If you have a question on how to use the product, please see our support guide.

Contributing

Contributions are welcome. Please see the contributing guide to see how you can get involved.

Code of Conduct

This project is governed by the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to oss@hedera.com.

License

Apache License 2.0

About

A TCK (Technology Compatibility Kit) used to verify compliant implementations of a Hedera SDK

License:Apache License 2.0


Languages

Language:JavaScript 100.0%