단위 테스트
런타임 로직에 대한 기본 단위 테스트를 설명합니다.
cargo testcargo help test모의 런타임에서 팔레트 로그 테스트
frame_support::construct_runtime!(
pub enum Test where
Block = Block,
NodeBlock = Block,
UncheckedExtrinsic = UncheckedExtrinsic,
{
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
TemplateModule: pallet_template::{Pallet, Call, Storage, Event<T>},
}
);
impl frame_system::Config for Test {
// -- 생략 --
type AccountId = u64;
}모의 런타임에서 스토리지 테스트
모의 런타임에서 이벤트 테스트
고급 이벤트 테스트
제네시스 구성
블록 생성
Last updated