Uploaded image for project: 'Magnolia Test Framework'
  1. Magnolia Test Framework
  2. MGNLTEST-415

Disabled tests should skip setting up light module fixtures

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None

    Description

      Currently disabled tests that are annotated with @LightModule still set up and tear down the light module fixture. This can lead to test failures on disabled tests should the light module definition fail. It also unnecessarily prolongs test execution.

      If possible we should improve the annotation processor such that it skips setting up the light module for tests that do not run.

      Notes for discovery:

      • @LightModule and @Disabled can both be used on method and class level. We need a better understanding on how they interact with each other. E.g. if @LightModule is set on class level will it still execute for individual methods that have @Disabled set?
      • Instead of complicating the code backing @LightModule, could it be less effort to align usages of these to annotations (e.g. in ResourcesFunctionalTests).

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mduerig Michael Duerig
                Foundation
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoD