Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-111

kogito-codegen-tests: alternative testing strategy for codegen

XMLWordPrintable

    • 5
    • 2019 Week 26-28, 2019 Week 32-34

      Currently we are doing dynamic compilation and classloading to test code generation. I am proposing an alternative strategy that use the plain Maven plugin.

      • create `kogito-codegen-tests`
      • write data/rules/process sources under src/main/ {java,resources}
      • write tests under src/test/

      tests are now allowed to refer directly to codegenerated classes by name.
      just use mvn compile test to run the tests

      caveat: not sure if the maven plugin is picked up from the current source tree or from the SNAPSHOT on the nexus, we need to check this

              Unassigned Unassigned
              evacchi Edoardo Vacchi (Inactive)
              Tibor Zimányi Tibor Zimányi
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: