Skip to content

Eximchain/dappbot-integration-tests

Repository files navigation

DappBot Integration Tests

How to verify that a deployed DappBot API is behaving properly:

Installation

# Get the code
git clone https://github.com/Eximchain/dappbot-integration-tests.git
cd dappbot-integration-tests

Setup

Testing currently requires a valid account, we can't test the full signup loop without an inbox integration. Before continuing, create a test-config.json file here with a valid username and password, as shown below:

# Put the following HEREDOC string into test-config.json (overwrites)
cat <<CONF > test-config.json
{
  "username": "foo@eximchain.com
  "password": "password"
}
CONF 
  • You can also specify an apiUrl, the tests will default to staging (https://api-staging.dapp.bot).
  • If the file does not specify username & password, all tests of private API endpoints will just fail.

Performing Test

Just run the command below. The ts-jest library manages all the compilation here, so we don't even need to build the code.

# Shorthand for npm run test
npm t

Successful output looks like:

About

End-to-end testing code to ensure DappBot is behaving.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors