-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Describe the bug
After running 'reassure --baseline' on a base branch and then moving to another branch with changes and running 'reassure' there, i get this error:
Error while parsing file: .reassure/baseline.perf [
{
"code": "custom",
"message": "Your performance result file contains records with duplicated names.\n Please remove any non-unique names from your test suites and try again.",
"path": []
}
It's a bit odd what is happening. The first run 'reassure --baseline' is working well it seems, as it is producing the baseline.perf file in the .reassure folder. The second run of 'reassure' without the '--baseline' on the other branch with changes, still somehow produces changes to the same baseline.perf file and then it complains about duplicates, after it just added them there by itself. Shouldn't the second run of 'reassure' without the '--baseline' argument not touch the baseline.perf file? Why is it adding changes to the baseline.perf file and then complains about duplicates?
To Reproduce
Steps to reproduce the behavior:
- run 'npx/pnpm reassure --baseline' on a branch (the baseline.perf is produced in the .reassure folder)
- change the branch and run 'npx/pnpm reassure'
- notice the baseline.perf file is changed again
- See error Error while parsing file: .reassure/baseline.perf [
{
"code": "custom",
"message": "Your performance result file contains records with duplicated names.\n Please remove any non-unique names from your test suites and try again.",
"path": []
}
Expected behavior
The second run of reassure without the '--baseline' argument should not alter the baseline.perf file again and then the error about the duplicates should go away by itself.
- OS: [macOS 15.3.2]