Uptest is a polkadot treasury funded library that is currently in development

DO NOT USE IN PRODUCTION YET

Uptest

Uptest aims to be an easy stand alone library for testing runtime upgrades before they are deployed.
Use libuptest to execute extrensic test before and after the upgrade is pushed

substrate runtime UPgrade TESTing suit

With uptest you can: * Easily query changes mades to types, storagemaps etc..
* Quickly get started with writing extrinsic tests with libuptest, let the library handle the execution logic before and after the runtime upgrade takes place
* More lightweight standalone version, rust code is not reliant on the main substrate repo
* Utilize a standalone rust library to build out your integration tests * Filter output based on pallet, to get a detailed change log
* Schedule tests to execute before and/or after a runtime upgrade takes place, developers does not need to spend any extra time, tracking the state and execution flow of the runtime upgrade with polkadot.js typescript
* no kitchensink-runtime needed

See future usage_future.md for more details

Got a feature you want us to add on the roadmap?

Submit a github issue

To be avaliable with cargo in the near future:

https://crates.io/crates/uptest

Check out future planned features here:

https://github.com/users/uptest-sc/projects/1/views/1

Examples

Get metadata version:

```rust use libuptest::jsonrpseeclient::JsonrpseeClient; use libuptest::wsmod::getmetadata_version;

println!("Connecting to Edgeware"); let dialedg: JsonrpseeClient = JsonrpseeClient::edgewaredefaulturl().unwrap();//.unwrap();//.unwrap(); let edgversion: u8 = getmetadataversion(dial_edg).await?;

println!("Connected to chain: {:?} and got metadata version: {:?}", "Edgeware", edgversion); `` cargo run -p uptest-examples --example metadataversion`

Get all pallet's storagevalues and storage maps:

shell cargo run -p uptest-examples --example get_pallet_storagemaps_storagevalues

Default connection endpoints:

The rpcclient comes with 5 different "default" chain endpoints:
* withdefaulturl -> ws://127.0.0.1:9944
* edgewaredefaulturl -> wss://edgeware.jelliedowl.net:443
* polkadotdefaulturl -> wss://polkadot-rpc-tn.dwellir.com:443
* kusamadefaulturl -> wss://kusama-rpc-tn.dwellir.com:443
* soradefaulturl -> wss://ws.mof.sora.org:443

Runtime Migrations links:

https://github.com/apopiak/substrate-migrations
https://substrate-developer-hub.github.io/docs/en/knowledgebase/runtime/upgrades
https://docs.substrate.io/reference/how-to-guides/parachains/runtime-upgrade/
https://github.com/paritytech/substrate/issues?q=label%3AE1-runtimemigration%20
https://wiki.polkadot.network/docs/learn-runtime-upgrades