Fire alarms should be tested regularly to ensure they are functioning correctly and will provide early warning in the event of a fire. The frequency of testing depends on the type of fire alarm system and the regulations in your area. In the UK, for example, the Regulatory Reform (Fire Safety) Order 2005 requires that fire alarm systems are subject to a suitable system of maintenance and are maintained in an efficient state, in efficient working order, and in good repair.
In general, fire alarms should be tested at least once a week by operating the test button on the control panel. This test should be conducted by a responsible person appointed by the building owner or operator. Additionally, a more thorough test should be carried out by how often should fire alarms be tested a competent person at least once every six months. This test involves activating a manual call point to ensure that the alarm is raised correctly and that all alarm sounders operate satisfactorily.
It's also important to keep a logbook of all tests and maintenance carried out on the fire alarm system, as this can help demonstrate compliance with regulations and ensure that the system is being properly maintained.