Closed (fixed)
Project:
Lupus Decoupled Drupal
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
23 Sep 2022 at 08:56 UTC
Updated:
7 Feb 2023 at 12:44 UTC
Jump to comment: Most recent
Let's add some first test-case which installs the stack and then verifies /ce-api/node/1 is working fine for some node
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
Comment #4
petar_basic commentedAdded an initial test.
Comment #5
petar_basic commentedComment #6
petar_basic commentedComment #7
fagomerged so we can get started testing.
Comment #8
fagoso this is not working yet, unfortunately tests fail
Comment #9
fagolet's do more testing!
Comment #18
mostepaniukvmtried more and can't make it work here. Locally tests are green when I run simply like this:
phpunit web/modules/contrib/lupus_decoupled/or
php ./web/core/scripts/run-tests.sh --color --keep-results --suppress-deprecations --types "Simpletest,PHPUnit-Unit,PHPUnit-Kernel,PHPUnit-Functional" --concurrency "32" --repeat "1" --sqlite "sites/default/files/.ht.sqlite" --dburl "sqlite://localhost/sites/default/files/.ht.sqlite" --url "http://d9playground.localdev.space" --directory modules/contrib/lupus_decoupledI added few more obvious tests and they works, only one that is really valuable and check /ce-api endpoint always fails.
As last tries I specified more dependencies in test itself and in .info.yml under test_dependencies but it doesn't help.
Little chance that it can start working after next tagged release as mentioned here.
https://www.drupal.org/docs/automated-testing/phpunit-in-drupal/running-...
Let's discuss on next weekly how to continue here
Comment #19
fagoWe decided that we don't want to spend much more time here, but rather invest it building up the test-pipeline on a gitlab runner.
So we could started by cloning the repo into the gitlab instance and test for free. And once working, get the opt-in on drupal.org to run gitlab tests.
Start based upon https://git.drupalcode.org/project/search_api_opensearch/-/blob/2.x/.git...
Comment #20
fagowell, initial test-coverage is there, so I'm calling this done. Next topic is automated test runs!