Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-4155

Ensure logs are grouped by each test when running the component tests

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Automation
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • subs-swatch-lightning

      When running a component test that have many tests, I want the logs to be grouped/printed by each test.

      For example, the test MyComponentTest has the following two methods:

      • whenXThenY()
      • whenZThenV()

      When running these methods in IntelliJ, I would expect that:

      • In MyComponentTest (all logs), see the start up of the SWATCH service and the rest of the logs that are enabled (all the services).
      • in whenXThenY, only the logs that happen during the test execution of this test
      • in whenZThenV, only the logs that happen during the test execution of this test

      Then, if whenZThenV fails, I do want

      Acceptance Criteria

      • In the component tests class, see ALL the logs that are enabled
      • In each test, only the logs that happened during the test execution
      • In the failed tests, have <TEST NAME>.log at target/<CLASS NAME> with only the logs during the test execution.
      • Ensure that the logs are correctly printed in report portal too.

              Unassigned Unassigned
              jcarvaja@redhat.com Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: