From 03661925540fb7da80aecf08a01476d16db0123f Mon Sep 17 00:00:00 2001 From: Zoltan Haindrich Date: Tue, 18 Jun 2024 13:07:48 +0000 Subject: [PATCH] updates --- .gitignore | 2 +- dev/quidem | 4 ++-- quidem-it/README.md | 35 +++++++++++++++++++++++++++++++++++ quidem-it/pom.xml | 8 ++++++++ 4 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 quidem-it/README.md diff --git a/.gitignore b/.gitignore index 0828365f2a7..adaf4d14c2b 100644 --- a/.gitignore +++ b/.gitignore @@ -27,7 +27,7 @@ README .pmdruleset.xml .java-version integration-tests/gen-scripts/ -/bin/ +**/bin/ *.hprof **/.ipynb_checkpoints/ website/.yarn/ diff --git a/dev/quidem b/dev/quidem index a68e08b3cfc..dec86fc9553 100755 --- a/dev/quidem +++ b/dev/quidem @@ -28,13 +28,13 @@ OPTS+=" -Dsurefire.rerunFailingTestsCount=0" OPTS+=" -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugin.surefire.SurefirePlugin=INFO" [[ $@ =~ "-q" ]] && OPTS+=" -Dsurefire.trimStackTrace=true" -OPTS+=" -pl sql -Dtest=SqlQuidemTest" +OPTS+=" -pl quidem-it -Dtest=QTest" OPTS+=" org.apache.maven.plugins:maven-surefire-plugin:test" case "$1" in -h|--help) cat << EOF -Run SqlQuidemTest tests. +Run QTest tests. -q quiet (recommened) -Dquidem.overwrite enables overwrite mode -Dquidem.filter=*join* runs only tests matching path expression diff --git a/quidem-it/README.md b/quidem-it/README.md new file mode 100644 index 00000000000..4d78bbe532f --- /dev/null +++ b/quidem-it/README.md @@ -0,0 +1,35 @@ + +# Quidem IT + +Enables to write sql level tests easily. +Can be used to write tests against existing test backends (ComponentSupplier) - by doing so the testcases can be moved closer to the excercised codes. + +## Usage + +### Running these checks + +* CI execution happens by a standard JUnit test `QTest` in this module +* the `dev/quidem` script can be used to run these tests (after the project is built) + +### Launching a test generating Broker + +* make sure to build the project first; one way to do that is: + ``` + mvn install -pl quidem-it/ -am -DskipTests -Pskip-static-checks + ``` +* launch the broker instance with: + ``` + mvn exec:exec -pl quidem-it -Dquidem.url= + ``` + + + + + + + + +### usage: + + * + diff --git a/quidem-it/pom.xml b/quidem-it/pom.xml index 5ca20043c37..dc9c44fdf36 100644 --- a/quidem-it/pom.xml +++ b/quidem-it/pom.xml @@ -40,6 +40,9 @@ + + druidtest:/// + com.amazonaws @@ -438,6 +441,11 @@ easymock compile + + org.reflections + reflections + compile +