Add a composer script to allow FunctionalJavascript test suite to be run

Created on 7 January 2019, over 6 years ago
Updated 15 April 2023, over 2 years ago

Problem/Motivation

Previously, the following command was required in order to run Functional and FunctionalJavascript tests:

phantomjs --ssl-protocol=any --ignore-ssl-errors=true ./vendor/jcalderonzumba/gastonjs/src/Client/main.js 8510 1024 768 2>&1 >> /dev/null &

Now Functional tests require no additional process, but FunctionalJavascript tests require this:

selenium-server -port 4444

I remember when this changed over, it was very confusing.

Proposed resolution

Provide a composer script that will run whatever the current correct command is.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Needs work

Version

10.1

Component
PHPUnit 

Last updated 4 days ago

Created by

🇺🇸United States tim.plunkett Philadelphia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States dww
    +++ b/composer.json
    @@ -109,6 +109,7 @@
    +        "drupal-test-thing": "chromedriver --port=4444",
    

    "drupal-test-thing"? 😂

    I don't think that's gonna fly.

    How about:

    "drupal-prepare-javascript-tests"

    or something?

  • Status changed to Needs review over 2 years ago
  • Addressed the change mentioned in #17

  • Status changed to RTBC over 2 years ago
  • 🇺🇸United States dww

    Cool, thanks. Works for me.

  • Status changed to Needs review over 2 years ago
  • 🇬🇧United Kingdom longwave UK

    Not sure that this adds much on its own. It depends how you have Chromedriver installed, so won't work for everyone, and there is no reference to this new command in any documentation so how will people discover it? There are docs in core/tests/README.md and at https://www.drupal.org/docs/automated-testing/phpunit-in-drupal/running-... already, I think we should improve those if they aren't good enough.

  • Status changed to Needs work over 2 years ago
  • 🇺🇸United States smustgrave

    Moving to NW for the README updates. Not sure if a separate ticket could be opened for the d.o docs page. Think you have to request permission to edit it.

Production build 0.71.5 2024