Skip to content

Testing

phil/reservation
AreaWhat is covered
Interval, Booking, BookingRequest, DecisionTheir values, every refusal, spans that touch
RulesEach rule at its bounds, on the resource's clock
AvailabilityWeekly hours, spans across midnight, days closed, changes of time, the bound of days
Bookable and LoadProfileCapacity, buffers, replaced bookings, reasons in order, slots by step, quantity, rules and bounds
ReminderScheduleOffsets, moments, the reminder due, reminders overtaken, bounds

Infection holds the library at 100 % of mutants killed.

vendor/bin/phpunit packages/reservation/tests

Benchmarks

The phpbench subjects under tests/Benchmark measure checking a request and listing the slots of a week among hundreds of bookings. From the monorepo root:

composer bench -- packages/reservation/tests/Benchmark