near / near-workspaces-js

Write tests once, run them both on NEAR TestNet and a controlled NEAR Sandbox local environment
https://near.github.io/near-workspaces-js/
GNU General Public License v3.0
44 stars 23 forks source link

[Feature] Cache testnet accounts #7

Closed willemneal closed 3 years ago

willemneal commented 3 years ago

We already experienced through testing that we can overload the account helper service. So once we have the ability to track accounts created and can delete them after the test we can store the master accounts locally to reuse on the next run.

chadoh commented 3 years ago

When this is implemented, we should also ensure that testnet accounts are cleaned up between test runs. Right now running in testnet mode pollutes my ~/.near-credentials/testnet directory.

And ensure that temporary accounts' keys aren't written to disc.