doc [skip ci]
This commit is contained in:
parent
8d9ac4c4d1
commit
36d2ec2d87
1 changed files with 8 additions and 2 deletions
10
doc/dev.md
10
doc/dev.md
|
|
@ -81,8 +81,14 @@ Test the native version:
|
||||||
## Tests for Libraries
|
## Tests for Libraries
|
||||||
|
|
||||||
Babashka runs tests of libraries that are compatible with it through
|
Babashka runs tests of libraries that are compatible with it through
|
||||||
`script/run_lib_tests`. The script `add-libtest.clj` makes adding new libraries
|
`script/run_lib_tests`.
|
||||||
fairly easy. Some examples:
|
|
||||||
|
You can check out [this
|
||||||
|
commit](https://github.com/babashka/babashka/commit/8d9ac4c4d18a5588a4a258a61a9db3835b4f4e5c)
|
||||||
|
for how to add tests for a library that needs no changes to its tests.
|
||||||
|
The library is cloned as a git dependency, which also includes the tests, that are then added to the test's classpath and ran.
|
||||||
|
|
||||||
|
If a library's tests needs changes, we copy the tests using the `add-libtest.clj` script. Examples:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# To add tests for a new library on clojars
|
# To add tests for a new library on clojars
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue