Skip to content

Commit 7703795

Browse files
committed
improved integration tests a little bit further
1 parent 11711c8 commit 7703795

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ target/
3838
# test files
3939
*.tml
4040
*.yaml
41-
tests/repositories/
41+
integration-tests/repositories/
4242

4343
#general
4444
*.class
4545
*.log
4646

4747
generated-docs
48+
49+
# java=17.0.9-graalce if you use sdkman
50+
.sdkmanrc

integration-tests/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
### Test suite
22

3-
Yaml test suite are used in integration testing - https://github.com/yaml/yaml-test-suite
3+
Yaml test suite are used in integration testing - https://github.com/yaml/yaml-test-suite
4+
5+
#### How to run integration tests
6+
7+
1. Figure out if `yamlpp-events` is installed on your system or install it if not, it's perl's yaml pp module
8+
2. Run `downloadYamlConfigs.sh` script to download yaml test suites
9+
3. `sbt integration/test` to run tests

integration-tests/downloadYamlConfigs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ done
2929
mkdir -p ./src/test/resources/yaml/configs/
3030
find ./repositories -name '*.yaml' -exec cp -prv '{}' './src/test/resources/yaml/configs/' ';'
3131

32-
LIB_YAML_PATH="" # Set the path to libyaml
32+
# lbialy: I think the process used here is 'yamlpp-events' so `which yamlpp-events` should be used
33+
LIB_YAML_PATH=`which yamlpp-events` # Set the path to libyaml
3334

3435
# In downloaded repositories contains some invalid yaml, below instructions can remove this yaml
3536
for f in ./src/test/resources/yaml/configs/*.yaml; do

0 commit comments

Comments
 (0)