Skip to content

Conversation

@lempira
Copy link
Contributor

@lempira lempira commented Nov 13, 2025

I am currenly working from this branch in the algokit-polytest repo.

I created the tests by running the following:

  1. cargo install --git https://github.com/joe-p/polytest.git installs polytest
  2. polytest --config test_configs/algod_client.json --git https://github.com/joe-p/algokit-polytest#feature/add-har-file-recordings generate -t vitest this generates the test from that branch. It will copy a polytest_dir.

Most of the tests fail because they are not yet implemented, but I have implemented some to test the mock-server. I had to update some this in the mock server, but its working.

I have only implemented 3 test for now:

packages/algod_client/tests/get_health.test.ts
packages/algod_client/tests/get_v_2_accounts_address.test.ts
packages/algod_client/tests/get_v_2_assets_asset_id.test.ts

neilcampbell and others added 9 commits November 14, 2025 22:22
  - Update get_health test to use external snapshots
  - Add get_v_2_status test
  - Add get_ready test
  - Add get_genesis test
  - Add get_versions test
  - Update get_v_2_accounts_address test to use external snapshots
  - Add get_v_2_accounts_address_applications_application_id test
  - Add get_v_2_accounts_address_assets_asset_id test
  - Add get_v_2_accounts_address_transactions_pending test
  - Add test constants to config.ts
  - Add get_v_2_transactions_params test
  - Add get_v_2_transactions_pending test
  - Add get_v_2_applications_application_id test
  - Add get_v_2_ledger_supply test
  - Add get_v_2_ledger_sync test
  - Add get_v_2_status_wait_for_block_after_round test
  - Add get_v_2_blocks_round test
  - Add get_v_2_blocks_round_hash test
  - Add get_v_2_blocks_round_lightheader_proof test
  - Add get_v_2_blocks_round_txids test
  - Add get_v_2_deltas_round test
  - Add TEST_ROUND constant to config.ts
- Add localnetConfig for connecting to localnet algod (port 4001)
- Implement POST/GET devmode blocks offset tests with verification
- Implement POST/DELETE sync round tests (skipped - requires follower mode)
- Skip catchup test (API not implemented)
- Update snapshots for existing tests
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