Problem/Motivation

Behat execution doesn’t work locally.
It seems that some parts of the Behat tests are outdated and no one used them.
But there is quite a good code coverage we can receive just by fixing the execution problems.

Readme doc is also outdated README.md:

  • Behat dependencies declared in README.md are not actual.
  • db.sqlite db dump is not stored in the project and is not used.

Steps to reproduce

Open the README.md file and follow the TESTING section instructions.

Proposed resolution

  • Fix Behat tests execution
  • Update README.md documentation
CommentFileSizeAuthor
#3 Screenshot 2024-01-16 at 17.20.10.png295.63 KBkufliievskyi
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kufliievskyi created an issue. See original summary.

kufliievskyi’s picture

Status: Active » Needs review
StatusFileSize
new295.63 KB

Testing steps

  • Follow the testing section steps in the README.md module file.
  • Run Behat execution command.

Behat execution command example:

bin/behat --config=behat.yml --colors --stop-on-failure ./web/modules/contrib/permissions_by_term/tests/src/Behat/Features

marcoliver made their first commit to this issue’s fork.

marcoliver’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, thanks!

marcoliver’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.