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

task.mdevals/scenario-1/

Test Progress Monitoring System

Overview

Build a test suite that demonstrates test progress tracking and reporting capabilities. The suite should retrieve runtime information about tests during execution and add descriptive progress markers to document test flow.

Requirements

1. Test Metadata Retrieval

Create a function GetCurrentTestInfo() that retrieves information about the currently running test and returns:

  • The full test description text
  • The file path where the test is defined
  • The line number of the test

2. Progress Step Documentation

Create a function RecordProgressStep(description string) that documents progress during test execution by logging descriptive steps. These markers should be visible in test output and help track test flow.

3. Test Suite Implementation

Implement a test suite in progress_test.go with at least 3 test cases that demonstrate:

  • Retrieving test metadata during execution
  • Logging multiple progress steps within tests
  • Verifying retrieved metadata is correct

Dependencies { .dependencies }

github.com/onsi/ginkgo/v2 { .dependency }

Provides BDD testing framework with progress reporting capabilities.

github.com/onsi/gomega { .dependency }

Provides assertion library for test validations.

Test Cases

Test Case 1: Metadata Retrieval { .test-case @test }

File: progress_test.go

Description: Test retrieves its own metadata and verifies the information is correct.

Expected Behavior:

  • Test description contains "retrieves its own metadata"
  • File path ends with "_test.go"
  • Line number is greater than 0

Test Case 2: Progress Steps { .test-case @test }

File: progress_test.go

Description: Test logs multiple progress steps during execution.

Expected Behavior:

  • Logs "Step 1: Initialize"
  • Logs "Step 2: Process"
  • Logs "Step 3: Complete"

Test Case 3: Combined Usage { .test-case @test }

File: progress_test.go

Description: Test uses both metadata retrieval and progress logging together.

Expected Behavior:

  • Retrieves test metadata
  • Logs at least 2 progress steps
  • Verifies metadata file path is not empty

Install with Tessl CLI

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

tile.json