Problem/Motivation
The module could use more tests in order to increase coverage. Kernel tests to ensure all the components work together would be a start.
Proposed resolution
Add Kernel tests to cover components.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2986241-2.patch | 3.1 KB | ieguskiza |
Comments
Comment #2
ieguskiza commentedI'm not entirely sure what we should test with Kernel tests so I'm uploading a small patch with a couple of tests that make sure the rendering of the different elements is done correctly.
Please feel free to improve on the ticket description and provide suggestions on what should be tested.
Comment #3
richardcanoe commented"Kernel tests are integration tests that test on components. You can install modules."
These tests show that this module works in conjunction with languages as it is required to.
I have tested these locally and are a good start to adding tests for this module.
Comment #4
AritoMelo commentedI give my +1 as a Code reviewer after installing the project and running the test, all green, good work!
I hope others extend the test as needed.
Comment #5
AritoMelo commentedFor testing the solution after the commit, follow this steps:
1- checkout "OPENEUROPA-584" branch
2- Fix composer file with PHP version > 7
3- Composer Install
composer install4- On runner.yaml.dist adapt the db settings to match yours
5- Setup the site via openeuropa ROBO task
6- Run test