Files
OrcaSlicer/tests
Lam Wei Lun 2b2bf3f5e2 Report the first layer time in the estimated-first-layer-time comment (#17328)
The comment was written from TimeMachine::prepare_time, which only
accumulates the blocks inside the start G-code's ;TYPE:Custom region, so
it reported the start G-code duration. With a start G-code that just
calls a PRINT_START macro that is close to zero.

The comment is a port of PrusaSlicer 2.6's identical one, which prints
the first layer time, and OrcaSlicer already writes the first layer time
into the .3mf plate metadata as first_layer_time, so G-code and .3mf
disagreed.

Write TimeMachine::first_layer_time instead, for both the normal and the
silent mode line and for every vendor. prepare_time is unchanged: the
preview still shows it as "Prepare time" and the Bambu-only
"; model printing time: ..." line still subtracts it.

The new test slices a cube with a slow start-G-code move and checks that
the comment carries the first layer time, which fails without the change.
2026-11-09 16:04:31 +08:00
..
2025-12-08 22:42:11 +08:00

OrcaSlicer tests

Building, running and writing tests is documented on the wiki, under How to Test.

Two files here rather than there, because coding agents only read what is in the repository:

  • AGENTS.md is the same guidance in short form, and is what an agent working under tests/ picks up.
  • CATCH2.md is the Catch2 reference, including the mistakes that break a test at runtime.