Просмотр исходного кода

Doc: Mention FORCE_REGENERATE var (#2833)

* Mention FORCE_REGENERATE var in doc

* Update tests/integration/README.md

---------

Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk>
Co-authored-by: Yufan Song <33971064+yufansong@users.noreply.github.com>
மனோஜ்குமார் பழனிச்சாமி 1 год назад
Родитель
Сommit
1d4f422638
2 измененных файлов с 11 добавлено и 1 удалено
  1. 10 0
      tests/integration/README.md
  2. 1 1
      tests/integration/regenerate.sh

+ 10 - 0
tests/integration/README.md

@@ -100,6 +100,16 @@ to cover the cost, ask one of the maintainers to regenerate for you. Before aski
 please try running the script first *without* setting `LLM_API_KEY`.
 Chance is, the test could be fixed after step 2.
 
+## Regenerate Integration Tests without testing first
+
+If you want to regenerate all prompts and/or responses without running the existing tests first, you can run:
+
+```bash
+FORCE_REGENERATE=true ./tests/integration/regenerate.sh
+```
+
+This will skip the first step and directly regenerate all tests when you know that the tests will fail due to changes in the prompt or the agent code itself and will save time.
+
 ## Regenerate a Specific Agent and/or Test
 
 If you only want to run a specific test, set environment variable

+ 1 - 1
tests/integration/regenerate.sh

@@ -228,7 +228,7 @@ for ((i = 0; i < num_of_tests; i++)); do
     fi
 
     TEST_STATUS=1
-    if [ -z $SKIP_TEST ]; then
+    if [ -z $FORCE_REGENERATE ]; then
       run_test
       TEST_STATUS=$?
     fi