Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Testing

patogallaiovlabs edited this page Jun 7, 2021 · 1 revision

Testing Procedure

Unit Testing

Unit Testing module is to be added.

  1. Run all test suites
    • npm test
  2. Run a specific test suite file
    • npm test -t "test/transaction.test.js"
  3. Run a specific describe test or it test
    • node node_modules/jest/bin/jest.js -i <test_file_name> -t "<describe_string> (or <it_string>)"
    • Example: 'node node_modules/jest/bin/jest.js -i test/common.test.js -t "ConvertCoinAmountToUnitHex"'

Manual Testing

Manual Testing has to be done on a real iOS/android device. This is to make sure we mimic real user's experience.

Steps

  1. Create a wallet
    • Check Go Back Button
    • Enable all three testnet tokens
  2. Import a wallet
    • Check Go Back Button
    • Enable all three testnet tokens
  3. Delete a wallet
    • Goes to Me bottom tab and delete a Key
    • Go back to dashboard and make sure wallet is deleted
  4. Receive Test BTC
    • Send Test BTC from an external wallet, and make sure transaction and balance correct in Address Detail page
    • Send Test BTC from rWallet, and make sure transaction and balance correctin Address Detail page
  5. Receive Test RBTC
    • Send Test RBTC from an external wallet, and make sure transaction and balance correct in Address Detail page
    • Send Test RBTC from rWallet, and make sure transaction and balance correctin Address Detail page
  6. Receive Test RIF
    • Send Test RIF from an external wallet, and make sure transaction and balance correct in Address Detail page
    • Send Test RIF from rWallet, and make sure transaction and balance correctin Address Detail page
  7. Send Test BTC
    • Send Test BTC to an external wallet, and make sure transaction and balance correct in Address Detail page
    • Send Test BTC to another address in rWallet, and make sure transaction and balance correctin Address Detail page
  8. Send Test RBTC
    • Send Test RBTC to an external wallet, and make sure transaction and balance correct in Address Detail page
    • Send Test RBTC to another address in rWallet, and make sure transaction and balance correctin Address Detail page
  9. Send Test RIF
    • Send Test RIF to an external wallet, and make sure transaction and balance correct in Address Detail page
    • Send Test RIF to another address in rWallet, and make sure transaction and balance correctin Address Detail page
  10. Change Language Settings
    • Change Language in Me tab, and make sure the App doesn't crash (We don't support any other launage yet)
  11. Change Currency Settings
    • Change Currency in Me tab, and make sure the App doesn't crash (We don't support any other launage yet)
  12. Click on Social Media Link
    • Click on all Social Media link, and make sure mobile phone could navigate to the correct webpage/app