This commit is contained in:
Zoltan Haindrich 2024-06-18 13:07:48 +00:00
parent 75c578ae33
commit 0366192554
4 changed files with 46 additions and 3 deletions

2
.gitignore vendored
View File

@ -27,7 +27,7 @@ README
.pmdruleset.xml .pmdruleset.xml
.java-version .java-version
integration-tests/gen-scripts/ integration-tests/gen-scripts/
/bin/ **/bin/
*.hprof *.hprof
**/.ipynb_checkpoints/ **/.ipynb_checkpoints/
website/.yarn/ website/.yarn/

View File

@ -28,13 +28,13 @@ OPTS+=" -Dsurefire.rerunFailingTestsCount=0"
OPTS+=" -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugin.surefire.SurefirePlugin=INFO" OPTS+=" -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugin.surefire.SurefirePlugin=INFO"
[[ $@ =~ "-q" ]] && OPTS+=" -Dsurefire.trimStackTrace=true" [[ $@ =~ "-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" OPTS+=" org.apache.maven.plugins:maven-surefire-plugin:test"
case "$1" in case "$1" in
-h|--help) -h|--help)
cat << EOF cat << EOF
Run SqlQuidemTest tests. Run QTest tests.
-q quiet (recommened) -q quiet (recommened)
-Dquidem.overwrite enables overwrite mode -Dquidem.overwrite enables overwrite mode
-Dquidem.filter=*join* runs only tests matching path expression -Dquidem.filter=*join* runs only tests matching path expression

35
quidem-it/README.md Normal file
View File

@ -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:
*

View File

@ -40,6 +40,9 @@
</repository> </repository>
</repositories> </repositories>
<properties>
<quidem.uri>druidtest:///</quidem.uri>
</properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.amazonaws</groupId> <groupId>com.amazonaws</groupId>
@ -438,6 +441,11 @@
<artifactId>easymock</artifactId> <artifactId>easymock</artifactId>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<scope>compile</scope>
</dependency>
<!-- Tests --> <!-- Tests -->