File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ cd ../../../.. || exit 1
4+ root_dir=$( pwd)
5+
6+ cd typescript || exit 1
7+
8+ generate_ts_output () {
9+ local project_name=$1
10+ local output_file=$2
11+
12+ # Generate report
13+ npx ts-node ./src/main.ts ../java/src/test/resources/" $project_name " -p -e react
14+
15+ # Copy the generated report file to the specified output location
16+ cp ../java/src/test/resources/" $project_name " /.reports/jqa/ts-output.json ../java/src/test/resources/" $output_file "
17+
18+ # Remove the current working directory from the file
19+ sed -i " s|${root_dir} ||g" ../java/src/test/resources/" $output_file "
20+ }
21+
22+ generate_ts_output java-it-core-basics-sample-project java-it-core-basics-sample-ts-output.json
23+ generate_ts_output java-it-core-multi-sample-projects java-it-core-multi-sample-ts-output.json
24+ generate_ts_output java-it-react-sample-project java-it-react-sample-ts-output.json
You can’t perform that action at this time.
0 commit comments