![JAR search and dependency download from the Maven repository](/logo.png)
no.tsl2.nano.autotest.2.5.3.source-code.copy-all-as-approved.sh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.autotest Show documentation
Show all versions of tsl2.nano.autotest Show documentation
Generates unit tests from code or annotated methods
The newest version!
#!/bin/bash
# copy all generated autotests to the src/test/resources folders of the modules of a multimodule project
. mainargs.sh "$@"
TST_BASE=${1:-./}
PRJ_BASE=${PRJ_BASE:-~/workspace/tsl2nano-code}
PRJ_MODULE_PREFIX=${PRJ_MODULE_PREFIX:-"tsl2.nano"}
cd $TST_BASE
for f in $(ls) ; do \
[[ $f == $PRJ_MODULE_PREFIX* ]] \
&& SRC_PATH="$PRJ_BASE/$f/src/test/resources" \
&& mkdir -p $SRC_PATH \
&& cp -rv $f/target/* $SRC_PATH \
&& mv $SRC_PATH/target/* $SRC_PATH \
&& rm $SRC_PATH/target; \
done
© 2015 - 2025 Weber Informatics LLC | Privacy Policy