Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3007

Implement smoke tests for each portlet/webapp

    Details

      Description

      This task involves creating a smoke test for each portlet and webapp to avoid unnecessary testing. Executing all the tests during catastrophic application failure takes a long time and provides a lot of noise and very little useful signal. It would be better to run a smoke test that alerts the tester of a catastrophic problem.

      One potential implementation of a smoke test (using the JUnit API) would be to run a test in an @BeforeClass method (after setup has occurred). If the test passes, do nothing. If the test fails, set a flag (consider concurrency and extending classes) and throw an AssertionError("Smoke test failed.") (or assert something with that same message). Then in an @Before method in IntegrationTesterBase, Assume.assumeTrue(smokeTestPassed) in order to skip all tests if the smoke test fails.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:

                Packages

                Version Package
                bridge-impl-4.2.1
                alloy-3.0.3
                showcase-3.0.5
                test-selenium-0.6.1