Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-97586

Consolidate Testing Strategy for React-based applications/components

    Details

      Description

      As we move to React, we need a clear testing strategy for teams. Some ongoing discussions are taking place at https://github.com/liferay/liferay-frontend-guidelines/issues/49 where several examples of existing tests are outlined.

      The goal of this story is to:

      • Come up with a standard setup that satisfies the needs of the teams to test their code in a quick and reliable way
      • Provide the necessary infrastructure through npm-scripts to do so
      • Document the guidelines and best practices associated with them

      State of the Art:

      We have an ongoing conversation at Standardize testing strategy for React in the frontend-guidelines repo that contains some additional information and opinions.

      Below is a crude and naïve list of react-based projects and their current testing dependencies

      Clay

      • jest
      • react-test-renderer@^16.6.1
      • react-testing-library@^6.1.2

      Segments-web

      • jest
      • react-testing-library@^5.3.2

      AlloyEditor

      • karma@4.0.0
      • mocha@6.0.0
      • sinon@7.2.4

        Attachments

          Activity

            People

            • Assignee:
              jose.balsas Chema Balsas
              Reporter:
              jose.balsas Chema Balsas
              Recent user:
              Enterprise Release HU
              Participants of an Issue:
              Engineering Assignee:
              Greg Hurrell
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                7.2.X
                Master