CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/golang-github-com-onsi-ginkgo-v2

A mature testing framework for Go designed to help you write expressive specs

Overall
score

97%

Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "This criteria evaluates the engineer's proficiency in using Ginkgo v2's programmatic test control functions, specifically Skip() and Fail(). The focus is on correctly implementing runtime conditional test skipping and test failure based on environment conditions.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses ginkgo.Skip()",
      "description": "The implementation uses ginkgo.Skip() function (not ginkgo.Fail()) to programmatically skip tests in SkipInCI() and SkipIfGoVersionBelow() functions. The Skip() function should be called with an appropriate skip message as parameter.",
      "max_score": 30
    },
    {
      "name": "Uses ginkgo.Fail()",
      "description": "The implementation uses ginkgo.Fail() function (not ginkgo.Skip()) to programmatically fail tests in RequireEnvVar() function when the environment variable is not set. The Fail() function should be called with an appropriate failure message as parameter.",
      "max_score": 25
    },
    {
      "name": "Correct skip messages",
      "description": "Skip messages match the specification exactly: 'Skipping test in CI environment' for SkipInCI() and 'Test requires Go X.Y.0 or higher, current version: A.B.C' format for SkipIfGoVersionBelow(). Messages are passed as string arguments to Skip().",
      "max_score": 15
    },
    {
      "name": "Correct fail messages",
      "description": "Fail message matches the specification: 'Required environment variable <name> is not set' where <name> is replaced with the actual variable name. Message is passed as a string argument to Fail().",
      "max_score": 10
    },
    {
      "name": "Conditional execution logic",
      "description": "The implementation correctly implements conditional logic: SkipInCI() only calls Skip() when CI=true, SkipIfGoVersionBelow() only calls Skip() when version is insufficient, and RequireEnvVar() only calls Fail() when variable is not set or empty.",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/golang-github-com-onsi-ginkgo-v2

tile.json