Skip to content

feat: add configurable results directory - #592

Open
huytdps13400 wants to merge 1 commit into
callstack:mainfrom
huytdps13400:fix/569-configurable-output-directory
Open

feat: add configurable results directory#592
huytdps13400 wants to merge 1 commit into
callstack:mainfrom
huytdps13400:fix/569-configurable-output-directory

Conversation

@huytdps13400

Copy link
Copy Markdown

Summary

  • Add REASSURE_OUTPUT_DIR for keeping each package result files in a separate directory.
  • Apply the directory consistently to CLI baseline/current files, measure default output, and compare JSON/Markdown reports.
  • Preserve REASSURE_OUTPUT_FILE as the higher-priority explicit measurement path.
  • Document the monorepo workflow and include a minor changeset.

Root cause

The result directory was hardcoded independently in the CLI, measure, and compare packages. Changing only the CLI path would still leave compare reading the original .reassure files, so the environment contract is resolved at all three package boundaries.

Testing

The new tests were observed failing before the implementation:

  • measure expected custom-results/current.perf but received .reassure/current.perf
  • compare exited because it still looked for .reassure/current.perf
  • the Markdown regression check failed while output.md was still hardcoded

Validation after the change:

  • yarn validate
  • yarn build
  • yarn changeset status

I also ran the built CLI end to end on Node 24 with a no-op test runner. Baseline followed by current measurement created baseline.perf, current.perf, output.json, and output.md only inside the configured package-specific directory.

Fixes #569.

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.

[FEATURE] Configurable output folder

1 participant