A mature testing framework for Go designed to help you write expressive specs
Overall
score
97%
{
"context": "This criteria evaluates the engineer's understanding of JustBeforeEach and JustAfterEach hooks in Ginkgo v2, specifically their ability to control setup/teardown timing in nested test contexts. The focus is on using these hooks to ensure operations run at the correct time relative to other lifecycle hooks.",
"type": "weighted_checklist",
"checklist": [
{
"name": "JustBeforeEach usage",
"description": "Uses JustBeforeEach to initialize the session object after all configuration setup is complete",
"max_score": 30
},
{
"name": "JustAfterEach usage",
"description": "Uses JustAfterEach to clean up the session object after each test but before outer cleanup runs",
"max_score": 25
},
{
"name": "BeforeEach for config",
"description": "Uses BeforeEach hooks to set up configuration in different nested contexts",
"max_score": 15
},
{
"name": "Nested contexts",
"description": "Uses Describe/Context blocks to create nested test hierarchies with different configurations",
"max_score": 10
},
{
"name": "Execution order",
"description": "Demonstrates understanding of execution order where JustBeforeEach runs after all BeforeEach hooks",
"max_score": 15
},
{
"name": "Test cases",
"description": "Implements the three required test cases using It blocks that verify session behavior",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/golang-github-com-onsi-ginkgo-v2docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10