Skip to content
Playground(another site)

bynk.fixture.unsafe_path

Error A suite's fixture path is empty, absolute or contains a .. segment.

A fixture's path is joined onto the project root to find the file, so it must stay inside the project: it may not be empty or absolute, and it may not contain a .. segment, which could climb out of it. Write the path relative to the project root, inside fixtures/. A relative path that is only outside fixtures/ is bynk.fixture.outside_fixtures_dir.

Example

fixture note = "fixtures/../note.txt" // ✗ a `..` segment
fixture note = "fixtures/note.txt" // ✓

In the Book

See also

  • The grammar rule it governs: fixture_decl.
  • Every code in its category, Other, on the diagnostic index.
  • bynk explain bynk.fixture.unsafe_path shows the same from the installed toolchain, without a network.