forkdelta / tokenbase

A repository of ERC20 token information. Tokens listed are tradeable on https://forkdelta.github.io. We welcome contributions! 🎉
GNU General Public License v2.0
156 stars 329 forks source link

Testing Guide #2314

Closed aakilfernandes closed 4 years ago

aakilfernandes commented 5 years ago

Hey,

We're working on a fork of tokenbase which includes NFTs and RFTs. Could you update the repo with information on how to run tests?

freeatnet commented 5 years ago

@aakilfernandes tests are basically documented in .travis.yml. They consist of two parts:

  1. yamllint -c .yamllint <token files...> checks that the YAML files are well formed and adhere to the YAML style guide.
  2. python scripts/test.py <token files...> checks that the token files contain the right data. That includes checking for presence of certain field like address and name, verifying that all links work, and that the token described responds to the standard EIP20 methods like balanceOf. You'll likely need to modify these tests in accordance with your needs.

Let me know if you have any other questions.