Common Code Policy

SeaLights' Common Code Policy empowers you to optimize testing across your codebase by identifying and leveraging shared functionalities.

Understanding the Distribution of Tests

Many organizations share a similar pattern where around 30% of the codebase comprises "common code". This code typically forms the foundation of your application, including infrastructure and widely used methods.

Reducing Test Redundancy

The Common Code Policy focuses on this prevalent scenario. It recognizes that when changes occur within common code, testing the entire suite might be unnecessary. Instead, the policy identifies a smaller, relevant subset of tests directly related to the modified code section. This targeted approach ensures quality verification while significantly reducing the number of tests required.

Policy Activation

Currently, SeaLights manually sets this policy. This involves analyzing the codebase to pinpoint these crucial methods and then activating the policy for those specific sections.

Note: Although SeaLights currently sets the policy manually, future updates might incorporate automated features for identifying common code and enabling the policy.

By leveraging the Common Code Policy, you can optimize your testing strategy, reducing redundancy and streamlining your development process while maintaining high quality standards.

Last updated