Skip to content

Latest commit

 

History

History
64 lines (55 loc) · 2.44 KB

File metadata and controls

64 lines (55 loc) · 2.44 KB

InvoicePlane V2 – Feature Test Checklist

I've written some tests. Indexes first. After indexes, the statuses, etc. After that the special cases, exceptions, etc., then the Create, Update, Delete actions within the different modules. Some modules had a sub page. For example: Invoices have invoice_groups as a sub page. Maybe I'll do the settings per module as a separate row in this checklist.

Notes (Invoices)

  • Tests for overdue invoices are missing:
  • If status NOT IN (1,4) and DATEDIFF((NOW), invoice_date_due) > 0 then is_overdue is true
  • Make special scope for overdue invoices
  • Test for that scope

Notes (Quotes)

  • The notes in the index, I've not ported them over from CodeIgniter.
  • For now, it's silly to put notes in an index. It's easily added though.

Test Coverage

Module Submodule Index (happy) Specials (happy) Create (happy) Update (happy) Delete (happy) Translations
clients
user_clients
core
custom_fields
custom_values
dashboard
email_templates
filter
guest (view missing)
import
layout
mailer
sessions
settings
upload
welcome
invoices
invoice_groups
tax_rates
peppol
payments
payment_methods
products
families
units
projects
tasks
quotes
reports
users
setup

Notes (Peppol E-Invoicing)

The Peppol integration includes comprehensive test coverage:

  • Enum Tests: All Peppol enums (TransmissionStatus, ErrorType, ValidationStatus, etc.) have complete test coverage
  • Service Tests: PeppolService with HTTP fakes for transmission, status checking, and cancellation
  • Provider Tests: Factory pattern and provider-specific client tests
  • Format Handler Tests: UBL, FatturaPA, ZUGFeRD format validation and transformation
  • Integration Tests: End-to-end integration lifecycle (create, test, validate, send)