LC0093 - StefanMaron/BusinessCentral.LinterCop GitHub Wiki

Global procedure in test codeunit requires test attribute

Use library codeunits for reusable or public procedures. Test codeunits should contain only tests and, when needed, local helper methods. If a procedure is shared across multiple codeunits, move it to a library codeunit rather than declaring it as a global procedure within a test codeunit.

codeunit 50100 MyTestCodeunit
{
    Subtype = Test;

    procedure MyGlobalTestProcedure()
    begin
    end;

    [Test]
    procedure MyProcedure()
    begin
    end;
}