Split KARATE modules packages by team name

FAT-1065 - Getting issue details... STATUS


Participants:
Project Manager
Java Lead

key summary status assignee Sprint Story Points
Loading...
Refresh

Goal and requirements

It is necessary to divide the KARATE modules by the name of the teams so that the notification comes in a separate slack channel (team's channel).

For this, it is proposed to change the package names in accordance with  FOLIO Module/JIRA project-Team-PO-Dev Lead responsibility matrix or mention several teams in package name in case several teams (except for the module owner team) are developing features in the corresponding module.

Requirements

  • Rename package from domain to team name (for example: spitfire, falcon, folijet and etc) or hyphenated names of several teams involved (for example, spitfire-falcon-folijet) and after dot you should add  domain, for example: mod-inventory, mod-source-record-storage and etc)
    • Example: prokopovych.mod-inventory
  • Rename path to features in the main class where we run all features.  For example: ModTagsApiTest has field TEST_BASE_PATH and need to change domain to spitfire.

Rename package

First of all,  change package name from domain to your team (teams). As example, we consider mod-tags:



NOTE: if your features are located in src folder, you also can change name as previous one:


Rename path to features

In the main class need to change path to all features from domain to your team (teams), for example:


Build and run test

Run the next command:

  • mvn clean install 
  • mvn test -Dtest=ModTagsApiTest -pl mod-tags -DargLine="-Dkarate.env=testing"

P.S. You also can run test via idea:


Verify karate-report

In the generated folder target you can find karate-summary-json.txt. In this file you should check field packageQualifiedName, this property should have your team name, for example: 

karate-summary-json.txt
"packageQualifiedName":"spitfire.tags.features.tags"