Skip to content

Commit

Permalink
Add print to confirm that the failed_test_stories.yml has been saved (#…
Browse files Browse the repository at this point in the history
…6793)

* Add print to confirm that the failed_test_stories.yml has been saved (#3998)

Co-authored-by: Henrike100 <henrikem100@gmail.com>

* Change the way to show the file name

* files formatted with black

* add changelog

* Update test core

* Formatted with black

* Update print

Co-authored-by: mbslet <lmbs.geo@gmail.com>
  • Loading branch information
Henrike100 and mbslet authored Dec 1, 2020
1 parent 5d5f41a commit ed509eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/3998.improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added a message showing the location where the failed stories file was saved.
5 changes: 5 additions & 0 deletions rasa/cli/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
DEFAULT_DATA_PATH,
DEFAULT_RESULTS_PATH,
)
from rasa.core.test import FAILED_STORIES_FILE
import rasa.shared.utils.validation as validation_utils
import rasa.cli.utils

Expand Down Expand Up @@ -109,6 +110,10 @@ def run_core_test(args: argparse.Namespace) -> None:
else:
test_core_models(args.model, stories, output)

rasa.shared.utils.cli.print_info(
f"Failed stories written to '{os.path.join(output, FAILED_STORIES_FILE)}'"
)


def run_nlu_test(args: argparse.Namespace) -> None:
"""Run NLU tests."""
Expand Down

0 comments on commit ed509eb

Please sign in to comment.