Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.33 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.33 KB

Test Commands 🛠️

Here are the essential commands for running and analyzing Go test cases:

Basic Testing

go test -v -cover ./...

Runs all tests recursively with verbose output and displays coverage in terminal.

Race Condition Testing

go test -race .

Executes test cases with race condition detection in the current directory.

go test -race -v .

Same as above but with verbose output for detailed test execution information.

Coverage Analysis

go test -coverprofile=coverage.out

Generates a coverage profile file (coverage.out) for detailed analysis.

go tool cover -html=coverage.out

Creates an interactive HTML report from the coverage profile, allowing visual exploration of test coverage in your browser.

Project Contents 🧭

This repository contains the following implementations: