• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cweill / gotests / 18735496211
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 23 Oct 2025 02:20AM UTC
Jobs 1
Files 14
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Oct 2025 02:19AM UTC coverage: 94.333% (-1.9%) from 96.272%
18735496211

Pull #194

github

cweill
fix: improve test case names and clean up unused golden files

**Key Improvements:**

1. **Better Test Case Names**
   - Changed prompt to suggest category-based names instead of literal examples
   - Error-returning functions: "valid_case", "edge_case", "error_case"
   - Non-error functions: "valid_input", "edge_case_1/2", "boundary_value"
   - Fixed issue where LLM was copying "empty_string" literally from prompt

2. **Prompt Engineering**
   - Removed literal examples ("valid_input", "empty_string", "negative_value") that LLM copied
   - Now shows category-based suggestions matching the test types requested
   - Example: "Example format (use test names like: valid_case / edge_case / error_case)"
   - Aligns test case names with semantic categories in instructions

3. **Cleaned Up Unused Golden Files**
   - Deleted 15 unused golden files that were no longer referenced
   - Kept only the 11 golden files actively used in E2E tests

4. **Added E2E Tests**
   - Added FormatCurrency and Factorial to E2E test suite
   - Now testing 11 functions total (up from 9)
   - All E2E tests pass with deterministic output validation

**Test Results:**
- All 11 E2E tests pass with strict golden file validation
- Test case names are now consistent and descriptive
- No more duplicate "empty_string" names across all test cases
- Full test suite: 24 unit tests, 95.2% coverage

**Files Deleted (15):**
- data_processing_deduplicate_ai.go
- file_ops_get_extension_ai.go
- function_returning_an_error_ai.go
- function_returning_only_an_error_ai.go
- function_with_a_variadic_parameter_ai.go
- function_with_anonymous_arguments_ai.go
- function_with_map_parameter_ai.go
- function_with_multiple_arguments_ai.go
- function_with_multiple_same_type_parameters_ai.go
- function_with_named_argument_ai.go
- function_with_neither_receiver_parameters_nor_results_ai.go
- function_with_pointer_parameter_ai.go
- function_with_return_value_ai.go
- function_with_slice_parameter_ai.go
- user_serv... (continued)
Pull Request #194: feat: AI-powered test case generation

686 of 747 new or added lines in 10 files covered. (91.83%)

6 existing lines in 2 files now uncovered.

1548 of 1641 relevant lines covered (94.33%)

1325.31 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
98.36
internal/ai/prompt.go
3
98.01
-0.94% internal/goparser/goparser.go
5
86.6
2.99% internal/output/options.go
6
95.04
internal/ai/prompt_go.go
20
88.1
internal/ai/ollama.go
24
86.05
internal/ai/parser_go.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
96.99
0.09% gotests.go
4
86.6
2.99% internal/output/options.go
Jobs
ID Job ID Ran Files Coverage
1 18735496211.1 23 Oct 2025 02:20AM UTC 14
94.33
GitHub Action Run
Source Files on build 18735496211
  • Tree
  • List 14
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #194
  • PR Base - develop (#18725169102)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc