/kie-assets-re-marshaller

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Kie Assets ReMarshaller

ReMarshaller search a project for Kie assets and re-marshall them by doing simple change in the asset and consequent save operation.

Motivation

There is need to confirm 'eating own our food', in this case Kie assets by VS Code Extension is not blocking from Kie projects execution.

Prerequisite

ReMarshhaller focus on remarshalling projects generated via kie-asset-library-poc tool. However any project that has Kie assets dirrectly under src/main/resources or src/test/resources ca be re-marshalled.

Running Kie Assets ReMarshaller

There is single mandatory property to be set

  • $KIE_PROJECT - path the the project containing Kie assets. Ideally project generated usingkie-asset-library-poc

  • Once properties mentioned above are set, run npm run test:it in terminal. This will:

    • Compile the code
    • Download the latest version of VSCode
    • Install Kogito VSCode extension into the VSCode instance
    • Download the adequate version of chromedriver
    • Run the downloaded VSCode binary using chromedriver

Currently there is single test which:

  • Search for all BPMN, update its Documentation and save it
  • Search for all DMN, update its Description and save it
  • Search for all PMML: TO DO
  • Search for all SCESIM: TO DO

Complete command example: KIE_PROJECT=<local-path>/dmn-and-bpmn-generated-quarkus npm run test:it