From 398c39422ada46eee9d5e3d86dcdcbdfb96d6e5b Mon Sep 17 00:00:00 2001 From: Thomas Thomassen Date: Thu, 28 Nov 2024 11:21:57 +0100 Subject: [PATCH] Add notes to README about running tests from the Ruby Console. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 28c76dc..5f2ef41 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,16 @@ Path: "%CONFIG_DIR%/tests/TestUp UI Tests" Output: "%CONFIG_DIR%/tests/ui-tests-results.json" ``` +## Running from Ruby Console + +```rb +tests = [ + "TC_Sketchup_Model#test_active_section_planes.+", +] +path = "C:/src/testup-2/tests/SketchUp Ruby API/" +TestUp::API.run_tests(tests, path: path, options: { ui: false }) +``` + ## Troubleshooting ### Minitest