Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-7283

fix graphviz unit tests not to fail with unexpected environment

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 8.34.0.Final
    • 8.33.0.Final
    • Impact Analysis
    • None
    • 2023 Week 03-05 (from Jan 16)
    • 1
    • NEW
    • NEW
    • ---
    • ---

      Issue Description:

      Graphviz-java uses Graphviz command line binary (e.g. /usr/bin/dot) if available.

      If not available, it falls back to GraphvizV8Engine or GraphvizJdkEngine. However, these fallback engines could be dependent on JDK implementation. (got a report that it doesn't work in Mac OSX)

      So installing Graphviz would be a quick fix locally.

      But as it might fail with "None of the provided engines could be initialized." depending on environments (so far, not happening in CI though), I'll fix unit tests not to break the test run. Also need some docs for users.

      Acceptance Criteria:

      • Add a unit test to simulate "None of the provided engines could be initialized." case
      • Pass unit tests without Graphviz binary
      • Add a note to install Graphviz binary for users in docs

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: