dotty ~master
Smart contract test runner
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
This package provides sub packages which can be used individually:
dotty:builder - Builder for smart-contracts
dotty:init-exec - Initiating folder for smart conract testing
Dotty
Smart-Contract Test runner
Creating project with test runner
dub init -t dotty <your project folder>
import dotty;
import contracts: Registry;
class ExampleTest: ContractTest
{
/// test variables
Registry registry;
/// contructor for ContractTest neccesery for any Test
mixin ContractTestContructor;
/// function running before all tests once
override void before(){
registry = Registry.deploy(conn, conn.remoteAccounts[1]);
}
@("registry should setable")
void test()
{
registry.set("registry", registry.address).send(conn.remoteAccounts[1].From);
assert(registry.get("registry") == registry.address, "addr must be in registry");
}
}
- ~master released 11 months ago
- d-eth/dotty
- MIT
- Copyright © 2023, tynuk
- Authors:
- Sub packages:
- dotty:runner, dotty:builder, dotty:init-exec
- Dependencies:
- deth
- Versions:
-
0.3.0 2023-Jun-01 0.2.0 2023-May-25 0.1.0 2023-May-09 0.0.9 2023-May-08 0.0.8 2023-May-08 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
47 downloads total
-
- Score:
- 0.0
- Short URL:
- dotty.dub.pm