Skip to content

Conversation

@ericsharma
Copy link
Collaborator

ℹ Overview

This PR addresses the positive teal tests for every transaction type. The new positive tests use the SDK to generate the transactions so an added benefit is increased code coverage for the SDK.

✏️ Things to note:

Make sure to set autoRun: false if your workspace is configured to automatically run tests. Because all the positive teal tests work on a single orderbook, running the tests all at once leads to complications. It doesn't matter which order you run the tests in, just make sure you are only running one at a time.

Also anything related to taker execution depends on the assumption that the orderbook is empty at the beginning of the test.
Check the state of the orderbook and close out any open orders if they exist before running any taker execution test.

After extensively running the tests, every once in a while one will fail. This is the result of our backend throwing a 404 every once in a while. This does not happen frequently, but if a test does fail, it is most likely related to that issue. To address the failing test, first check the state of the orderbook and close out any open orders if they exist, then re-run the test.

📝 Related Issues

#226

Do fully test, need to bring back the 'beforeAll' tests
…-transaction-types-to-user-sdk-v2-transaction-generators

231 acceptance refactor generate transaction types to user sdk v2 transaction generators
…-the-different-order-types

226 acceptance add tests for all the different order types
✨ Test passing for placeAlgoWithOptIn using v2
…t-in-txn

236 teal algo escrow place no opt in txn
✨Cancel ASA set up and test complete
✨ Closing Order and cleanupStep for TealAsaEscrowPlace
…no-opt-in-txn

✅Passing tests for asaPartialExecutiuon no optin
…row-pay-partial-with-no-opt-in

✨Cleanup step for partial execution no optin
…k-the-state-before-passing-order-into-taker-execution-tests

✅: 284 fetch the orderbook and check the state before passing order into taker execution tests
…opt-in

✅ Passing test for TealAsaEscrowPayCloseoutNoOptInTxn
…n-to-take-an-optional-note-parameter

✨ 290 edit account setup function to take an optional note parameter
…andardize-naming-across-different-tests

292 improve documentation and standardize naming across different tests
@vercel
Copy link

vercel bot commented Sep 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
algodex-sdk ✅ Ready (Inspect) Visit Preview Oct 19, 2022 at 2:53PM (UTC)

@atrefonas atrefonas changed the base branch from development to main October 19, 2022 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants