Skip to content

backstop-results command does not consider changed backstop tests directory #29

Description

@reszli

Preliminary checklist

  • I am using the latest stable version of DDEV
  • I am using the latest stable version of this add-on

Expected Behavior

According to the Readme you can change the test directory:
https://github.com/mmunz/ddev-backstopjs?tab=readme-ov-file#change-backstop-tests-directory

I just did that and the config is read from then / data is generated there, as expected.

I would expect the backstop-results to also consider this change.

Actual Behavior

However the backstop-results command had hard-coded path in https://github.com/mmunz/ddev-backstopjs/blob/main/commands/host/backstop-results

Error when getting information for file “.../tests/backstop/backstop_data/html_report/index.html”: No such file or directory
Failed to run backstop-results ; error=exit status 4

Steps To Reproduce

  1. change volume mapping in docker-compose.backstop.yaml according to Readme
  2. run ddev restart
  3. run ddev backstop init
  4. run ddev backstop reference
  5. run ddev backstop test
  6. run ddev backstop-results

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions