TerraShield is a cutting-edge automation testing framework designed exclusively for comprehensive end-to-end (e2e) testing of Terra applications. Our mission is to ensure the highest quality and reliability of Terra apps through meticulous testing processes.
- Station Web App: A cornerstone for Terra's web-based interactions.
- Station Extension: Enhancing your browser with Terra's financial capabilities.
- Enterprise DAO V2: A new era for decentralized autonomous organizations on Terra.
- Station Wallet: Fully supported for approving transactions and providing a complete suite of tests.
To tailor TerraShield to your project's needs, create an .env
file in the root directory and populate it with the following configurations:
SEED_PHRASE = "Seed phrase"
PRIVATE_KEY = "Private key"
PRIVATE_KEY_TWO = "Private key two"
BASE_URL = "https://dao.enterprise.money/" or "https://station.money/" # Choose based on your project's requirements or if you want to test something else (terra apps have tests premade)
IS_TESTNET = false || true
STATION_PATH = "path to station extension build folder"
PW_TEST_HTML_REPORT_OPEN = "always"
IS_MOBILE = false || true
From the Station Extension Repository:
- Clone Repository
- Prepare for Build: Remove
node_modules
andbuild
folder. - Install Dependencies:
npm install
- Edit Browser-Polyfill.js: Comment out lines 25 to 27.
- Build Extension:
npm run build
- Place Built Extension: Copy the
build
folder to TerraShield's root folder.
After setup:
- Playwright Commands: Use Playwright commands to run specific tests. Example:
npx playwright test path/to/spec.js
. - Visual Studio Code Extension: Utilize the Playwright Test for Visual Studio Code extension for an integrated testing experience.
Refer to the project's guidelines for contributions, license details, and contact information.