Skip to content

Split the One Big Test into multiple#1527

Open
adamchalmers wants to merge 2 commits intomainfrom
achalmers/split-up-tests-properly
Open

Split the One Big Test into multiple#1527
adamchalmers wants to merge 2 commits intomainfrom
achalmers/split-up-tests-properly

Conversation

@adamchalmers
Copy link
Contributor

@adamchalmers adamchalmers commented Mar 18, 2026

Previously tests::test_main ran a lot of different tests. Now it's replaced by many small Rust tests. This way you can filter them via cargo nextest and get nice reporting, and they run in parallel so it's faster.

@adamchalmers adamchalmers requested a review from jessfraz as a code owner March 18, 2026 18:56
`zoo ml kcl edit gear.kcl ...` failed before reaching the API because
`Path::parent()` on a bare relative filename returns `Some("")`. We passed
that empty path to `kcl_lib::walk_dir`, which produced the empty-path
"is not a directory" error.

Treat that empty parent as the current directory, and compare canonical
paths when filtering walked files so the primary input file is not re-added
when we walk `.`.

Add a regression test covering relative file inputs from the current
directory.

This fixes the local path-handling failure. The API still expects a project
root containing `main.kcl`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants