status-desktop/test/status-go/integration
dependabot[bot] edbb2d75a3
chore(deps): bump golang.org/x/crypto in /test/status-go/integration
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.12.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.12.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-12 21:30:18 +00:00
..
helpers chore(wallet): add integration dev tests for pending tx status update 2024-01-12 22:23:39 +01:00
wallet chore(wallet): add integration dev tests for pending tx status update 2024-01-12 22:23:39 +01:00
.gitignore chore(wallet): add integration dev tests for pending tx status update 2024-01-12 22:23:39 +01:00
README.md chore(wallet): add integration dev tests for pending tx status update 2024-01-12 22:23:39 +01:00
go.mod chore(deps): bump golang.org/x/crypto in /test/status-go/integration 2024-01-12 21:30:18 +00:00
go.sum chore(deps): bump golang.org/x/crypto in /test/status-go/integration 2024-01-12 21:30:18 +00:00
integration_tests_config-template.json chore(wallet): add integration dev tests for pending tx status update 2024-01-12 22:23:39 +01:00

README.md

Development integration tests for status-go

These integration tests are an experiment. They rely on an existing developer environment (working user folder, blockchain access tokens) and internet connection.

If it proves its usefulness we might consider automating them and make it independent of internet services

How to run tests

Setup steps

  • Dump the node config passed to Login status-go call as .node_config.json and use its path later on in as nodeConfigFile in .integration_tests_config.json
    • Ensure the blockchain access tokens are configured when dumping the configuration file
  • Copy integration_tests_config-template.json to tests sub-folders and rename it as .integration_tests_config.json, then update it with your own values.
    • Update nodeConfigFile with the previously extracted node config path
    • The hashedPassword should be the "0x" + keccak256(clearPassword)
    • For dataDir it is expected an working status-go user folder (e.g. the usual status-desktop/Second/data used with make run command)

Run wallet tests

  • once

    (cd test/status-go/integration && go test -v ./wallet/... --tags=gowaku_no_rln,gowaku_skip_migrations)
    
  • continuously on code changes

    (cd test/status-go/integration && nodemon --watch ../../../vendor/status-go/ --watch .  --ext "*.go,*.sql" --exec 'go test -v ./wallet/... --tags=gowaku_no_rln,gowaku_skip_migrations 2>&1 | tee ~/proj/tmp/status-go-tests.log || exit 1')