Project

General

Profile

Rewriting redmine tests because of plugins

Added by Egor Bolotov 13 days ago

I have a redmine 5.0.7 version with many plugins, which often monkey patch redmine core logic. I want to run redmine tests for ci process. I have noticed, redmine tests breaks in test environment, because plugin settings is not initialized in database and i get nil error when trying to read them. At production mode i just click save on plugin setting page to create record about the plugin in settings table. How can i handle that problem? Create it in migration or is there other ways?

Redmine version 5.0.7.stable
Ruby version 3.0.2 [x86_64-linux-gnu]
Rails version 6.1.7.6
OS Fedora
Database Mariadb 10.5
Ruby-aware server Phusion passenger