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

acossta / captan / 17160716822
83%

Build:
DEFAULT BRANCH: main
Ran 22 Aug 2025 04:33PM UTC
Jobs 2
Files 28
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

22 Aug 2025 04:32PM UTC coverage: 82.954% (+2.3%) from 80.673%
17160716822

push

github

web-flow
feat: Complete CLI redesign with comprehensive testing (#24)

* feat: Complete CLI redesign to resource-oriented architecture

Implements GitHub issue #23 - transforms CLI from inconsistent command
patterns to clean resource-oriented architecture following RESTful principles.

## Architecture Changes
- Resource-first commands: `captan [resource] [action]`
- Consistent CRUD verbs: add, list, show, update, delete
- Email-based stakeholder identification support
- Clean handler separation by resource type

## New Command Structure
- stakeholder: add/list/show/update/delete
- security: add/list/show/update/delete
- issuance: add/list/show/update/delete
- grant: add/list/show/update/delete
- safe: add/list/show/update/delete/convert
- report: summary/ownership/stakeholder/security
- export: csv/json/pdf
- system: init/validate/schema/log

## Implementation
- Extracted 2,593 lines of handlers into clean modular files
- Fixed property name mismatches (pps vs pricePerShare)
- Implemented missing CRUD operations (many were stubs)
- Added comprehensive identifier resolution system
- Updated all 28 integration tests to new syntax

## Documentation
- Added comprehensive Usage section with all commands
- Updated all examples to use new resource-oriented syntax
- Fixed parameter notation (<required> vs [optional])
- Removed outdated command references

## Testing
- All 521 tests passing
- Complete end-to-end verification of new commands
- Integration tests updated for new CLI structure

Breaking changes for v0.4.0 - new architecture is production ready.

* test: add comprehensive handler tests and fix test isolation issues

- Add complete test suites for all handler modules (10 new test files)
- Add identifier-resolver and helpers test suites
- Fix test isolation issues by using factory functions and deep cloning
- Fix mock return structures to match implementation expectations
- Improve coverage from 39.23% to 83.93% overall
- Handler coverage increased to 94.79% ... (continued)

1206 of 1401 branches covered (86.08%)

Branch coverage included in aggregate %.

2469 of 3102 new or added lines in 16 files covered. (79.59%)

4 existing lines in 1 file now uncovered.

4595 of 5592 relevant lines covered (82.17%)

1626.0 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.66
src/handlers/report.handlers.ts
2
93.05
-0.21% src/services/reporting-service.ts
4
95.18
src/handlers/export.handlers.ts
8
11.11
src/handlers/index.ts
14
44.0
src/utils/test-utils.ts
17
91.84
src/handlers/security.handlers.ts
25
89.39
src/handlers/issuance.handlers.ts
30
86.99
src/handlers/system.handlers.ts
40
87.36
src/handlers/grant.handlers.ts
48
82.79
src/handlers/stakeholder.handlers.ts
50
86.92
src/handlers/safe.handlers.ts
394
0.19
-0.1% src/cli.ts

Uncovered Existing Lines

Lines Coverage ∆ File
4
0.19
-0.1% src/cli.ts
Jobs
ID Job ID Ran Files Coverage
1 node-20 - 17160716822.1 22 Aug 2025 04:33PM UTC 28
82.95
GitHub Action Run
2 node-22 - 17160716822.2 22 Aug 2025 04:33PM UTC 28
82.95
GitHub Action Run
Source Files on build 17160716822
  • Tree
  • List 28
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #17160716822
  • 74e3f345 on github
  • Prev Build on main (#17116622701)
  • Next Build on main (#17162159487)
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