Concordium / concordium-rust-smart-contracts

Libraries and tools for writing and testing smart contracts on Concordium
https://docs.rs/concordium-std/latest/concordium_std/
Mozilla Public License 2.0
57 stars 35 forks source link

Migrate tests for example contracts #347

Closed Bargsteen closed 1 year ago

Bargsteen commented 1 year ago

Purpose

Migrate the tests of most of our example contracts from the old testing infrastructure to the new integration testing library. Closes https://github.com/Concordium/concordium-rust-smart-contracts/issues/337 and https://github.com/Concordium/concordium-rust-smart-contracts/issues/338.

Changes

Checklist

Bargsteen commented 1 year ago

Looks good.

I'm wondering what the problem is with migrating credential-registry tests?

At least the ones in the credential_registry example are very simple. We can keep the existing tests that are for the state as they are, that was also the idea, and we migrate endpoint tests to use the testing library.

I didn't notice that. Good point. I'll migrate those tests tomorrow.