Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22544

Rework @LocalDeploy and NXRuntimeTestCase#deployTestContrib

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.2
    • Fix Version/s: 10.1
    • Component/s: Runtime, Tests
    • Tags:
    • Upgrade notes:
      Hide

      @LocalDeploy is now deprecated it must not be used anymore, use @Deploy instead.

      It was too permissive, and sometimes the replacement may force to adapt the content of the annotation.

      Show
      @LocalDeploy is now deprecated it must not be used anymore, use @Deploy instead. It was too permissive, and sometimes the replacement may force to adapt the content of the annotation.
    • Story Points:
      5

      Description

      It seems that NXRuntimeTestCase#deployContrib and NXRuntimeTestCase#deployTestContrib do the same thing. You can deploy test contribution with deployContrib, the only requirement is to have a test bundle (which is mainly our case).

      As a consequence, @Deploy and @LocalDeploy which rely on these, could also benefit from this rework.

      We want to deprecate/remove deployTestContrib and @LocalDeploy if they're not needed anymore. This will reduce complexity of runtime and miscomprehension when you write unit test.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week
                  1w