Skip to content

Commit

Permalink
improved integration tests a little bit further
Browse files Browse the repository at this point in the history
  • Loading branch information
lbialy committed Jul 21, 2024
1 parent 596ac43 commit e148fef
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ target/
# test files
*.tml
*.yaml
tests/repositories/
integration-tests/repositories/

#general
*.class
*.log

generated-docs

# java=17.0.9-graalce if you use sdkman
.sdkmanrc
8 changes: 7 additions & 1 deletion integration-tests/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### Test suite

Yaml test suite are used in integration testing - https://github.com/yaml/yaml-test-suite
Yaml test suite are used in integration testing - https://github.com/yaml/yaml-test-suite

#### How to run integration tests

1. Figure out if `yamlpp-events` is installed on your system or install it if not, it's perl's yaml pp module
2. Run `downloadYamlConfigs.sh` script to download yaml test suites
3. `sbt integration/test` to run tests
3 changes: 2 additions & 1 deletion integration-tests/downloadYamlConfigs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ done
mkdir -p ./src/test/resources/yaml/configs/
find ./repositories -name '*.yaml' -exec cp -prv '{}' './src/test/resources/yaml/configs/' ';'

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

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

0 comments on commit e148fef

Please sign in to comment.