CtrlK
BlogDocsLog inGet started
Tessl Logo

dojo-test

Write tests for Dojo models and systems using spawn_test_world, cheat codes, and assertions. Use when testing game logic, verifying state changes, or ensuring system correctness.

79

2.02x
Quality

70%

Does it follow best practices?

Impact

99%

2.02x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./skills/dojo-test/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

100%

83%

Add Integration Tests for a Dojo Game System

Integration test world setup

Criteria
Without context
With context

spawn_test_world usage

0%

100%

sync_perms_and_inits call

0%

100%

namespace_def function

0%

100%

contract_defs function

0%

100%

ContractDefTrait writer permissions

0%

100%

Model registration

25%

100%

Event registration

25%

100%

world.dns usage

0%

100%

world.read_model usage

0%

100%

Correct imports

12%

100%

Integration test location

100%

100%

sozo test command

71%

100%

100%

29%

Test Multi-Player Game State Isolation and Time-Based Mechanics

Cheat codes and direct model manipulation

Criteria
Without context
With context

set_contract_address for players

0%

100%

Two distinct player addresses

100%

100%

Independent state verification

100%

100%

set_block_timestamp usage

100%

100%

write_model_test usage

100%

100%

erase_model usage

33%

100%

Post-erase assertion

100%

100%

spawn_test_world setup

37%

100%

world.read_model assertions

100%

100%

Correct imports for cheat codes

60%

100%

98%

38%

Add Tests for Error Conditions and Unit Test a Model

Test file organization and panic testing

Criteria
Without context
With context

Unit tests in model file

100%

100%

cfg(test) module

100%

100%

At least two unit tests

100%

100%

Integration test in tests/ dir

100%

100%

should_panic attribute

64%

100%

Correct panic message

70%

100%

spawn_test_world in integration test

50%

100%

ModelStorage imports

0%

75%

dojo_cairo_test imports

0%

100%

write_model_test for setup

0%

100%

Repository
dojoengine/book
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.