Uploaded image for project: 'Aesh'
  1. Aesh
  2. AESH-328

Create abstract class for command unit tests

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.0.0.Beta1
    • 0.62
    • None
    • None

    Description

      aesh-extensions already has AeshTestCommons, written by heliofrota. That's a great start, but I'm having some issues with it. Most notably, there appears to be some timing issues when debugging in the IDE. If a breakpoint occurs in the middle of a succession of commands (using #pushToOutput), the break screws up the processing of all proceeding commands. (Ie, if run without debugging, you get entirely different results).

      I understand this is due to the multi-threaded nature of Aesh. If nothing else, it might be a good idea for us to come up with a concise abstract test class, as well as a set of docs, to help facilitate unit tests on custom commands.

      Attachments

        Issue Links

          Activity

            People

              spederse@redhat.com Stale Pedersen
              brmeyer_jira Brett Meyer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: