Open nichtich opened 7 months ago
We have a docker based test environment, which unfortunately was updated in July the last time, so that could be used for the "call all tabs" tests. The problem I see with PHPUnit is that the parameters that initializes the classes come from 1) URL 2) configuration 3) the JSON parameter files of the backend. It needs a preliminary investigation how they can be faked in a unit test. Any suggestion would be welcomed.
Just linting the PHP files as done here could be a start.
Automatically running tests has been enabled (this would have checked a bug in configuration management I just introduced) but no test actually executes the main file index.php
yet.
Tests should automatically be run via GitHub Action and merging main to dev should require passing tests.
First is doable without having to set up a test environment with temporary config file and Solr server to connect to. The latter would be best but can be done later.