---
id: TASK-10
title: Increase test coverage above 90% with meaningful tests
status: Done
assignee: []
created_date: '2026-02-04 11:47'
updated_date: '2026-02-04 12:45'
labels: []
dependencies: []
references:
  - luacov.report.out
  - spec/api_spec/configurator_spec.lua
  - spec/api_spec/sandbox_spec.lua
  - spec/api_spec/manager_spec.lua
  - spec/zync_spec.lua
  - lua/zync/api.lua
  - lua/zync/api/configurator.lua
  - lua/zync/api/configurator/sandbox.lua
  - lua/zync/api/manager.lua
---

## Description

<!-- SECTION:DESCRIPTION:BEGIN -->
Use the current luacov report (`luacov.report.out`) to target meaningful, behavior-focused tests that raise overall coverage to >90%, focusing on low-coverage modules (configurator, sandbox, api, manager).
<!-- SECTION:DESCRIPTION:END -->

## Acceptance Criteria
<!-- AC:BEGIN -->
- [x] #1 All subtasks are completed.
- [x] #2 Overall luacov coverage exceeds 90% with meaningful tests (no shallow line-only hits).
<!-- AC:END -->

## Final Summary

<!-- SECTION:FINAL_SUMMARY:BEGIN -->
Summary:
- Added comprehensive, behavior-focused tests across configurator, sandbox, API, and manager modules to cover previously untested branches and edge cases (profile-order parsing, workspace/base derivation, compile_commands link handling, sandbox limits, runners/boards/listing behaviors, and error paths).
- Expanded zync API and configurator specs to exercise parsing/comment handling, fallback logic, and validation errors.

Tests:
- `busted`

Coverage:
- Luacov total coverage now 94.35% (835 hits / 50 missed).
<!-- SECTION:FINAL_SUMMARY:END -->
