-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run tests without Selenium installed. #3644
Comments
@dpagini Just curious, where are you trying to run these tests that does not have Java? Pipelines? |
Locally and on Travis I don't have java. None of our DEVs have java locally as we all started from a shared base box. We could definitely add it, but I don't need it right now (no functional JS tests) and it's blocking me from upgrading to BLT 10 now. |
Ok, BLT enables Java on both Travis and DrupalVM by default. I will take a look at adding a flag to skip Java dependent tests. |
This is really a minor one to me... don’t mean to inconvenience, just wanted to mention my experience. I’m psyched to start writing and testing JavaScript tests, so thanks for all you’ve done already! |
I have been meaning find time to add support for Nightwatch.js, which is also supported by Drupal core for JS testing, so it won't be a bother to revisit this in the process. |
Thanks, if you're able to spearhead this it would be much appreciated. It would be a big lift for me since I don't work with the core testing framework on a regular basis. I do agree that long-term, it would be good to support environments without Java. |
The original request here is in the context of the run-tests.sh script, which we are considering deprecating in BLT 11 (because Simpletest itself is becoming deprecated in Drupal): #3917 We've already removed Selenium from BLT by default (#3878), and are in the process of reworking the Drupal test commands to use (PHPUnit or Nightwatch) and Chromedriver by default: #3673 In that case, it doesn't seem like there's any action required in this ticket. |
Describe the bug
I want to run Drupal PHPUnit tests with the
run-tests.sh
method without using selenium. This was introduced in #3577. I'm wondering if there can be a better way to make this work...? I believe Selenium is only required to make the javascript functional tests work, is that accurate? If so, is there anyway we can skip those tests or something if there is no selenium... that would still allow kernel and functional tests to run on a system without selenium. Just seems drastic to say you cant run any tests withoutJava
installed...?Expected behavior
I want to be able to run tests without Java installed.
The text was updated successfully, but these errors were encountered: