From 36d2ec2d876fbcd7e1c7fcfbc9c203e7c0117c6f Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 5 Nov 2022 15:56:31 +0100 Subject: [PATCH] doc [skip ci] --- doc/dev.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/dev.md b/doc/dev.md index dac50075..872cfa8e 100644 --- a/doc/dev.md +++ b/doc/dev.md @@ -81,8 +81,14 @@ Test the native version: ## Tests for Libraries Babashka runs tests of libraries that are compatible with it through -`script/run_lib_tests`. The script `add-libtest.clj` makes adding new libraries -fairly easy. Some examples: +`script/run_lib_tests`. + +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 # To add tests for a new library on clojars