A mature testing framework for Go designed to help you write expressive specs
Overall
score
97%
Build a test suite runner that executes BDD-style tests for a simple calculator module. The runner should support both serial and parallel test execution modes.
Implement a test suite that:
The calculator module provides these operations:
package calculator
func Add(a, b int) int
func Subtract(a, b int) int
func Multiply(a, b int) int
func Divide(a, b int) (int, error)The Divide function returns an error if the divisor is zero.
Create a test suite that:
The test suite should work with both:
go testThe following test cases should be implemented:
calculator/
├── calculator.go # Calculator implementation
└── test/
├── calculator_suite_test.go # Suite setup
└── calculator_test.go # Test specificationsProvides BDD testing framework support.
@describes
Provides matcher/assertion library.
@describes
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