From 09005bc03a4c92b8941916f1c4e1648a00148595 Mon Sep 17 00:00:00 2001 From: Ahmed Sameh Elsawalhy Date: Tue, 28 Oct 2025 22:02:55 +0300 Subject: [PATCH] docs: improve Windows setup instructions for TextTest with Python Fixes issue where newer versions of texttest produce .exe files instead of .py files. Updated start_texttest_from_python.bat to use texttestc.exe instead of texttestc.py. Also enhanced documentation for Windows users with recommendations for tools like Meld and fc. --- start_texttest_from_python.bat | 2 +- texttests/README.md | 5 +++++ texttests/config.gr | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/start_texttest_from_python.bat b/start_texttest_from_python.bat index d13f4432..086a085e 100644 --- a/start_texttest_from_python.bat +++ b/start_texttest_from_python.bat @@ -10,5 +10,5 @@ venv\Scripts\pip install texttest if %ERRORLEVEL% GEQ 1 ( pause ) else ( - venv\Scripts\texttestc.py -con %* + venv\Scripts\texttestc.exe -con %* ) diff --git a/texttests/README.md b/texttests/README.md index 6b9c52d4..b1deec22 100644 --- a/texttests/README.md +++ b/texttests/README.md @@ -25,6 +25,11 @@ Download the installer as explained on [TextTest.org](http://www.texttest.org/ge Windows may warn you that it doesn't trust this installer and be reluctant to download it. If you prefer not to continue with this, an alternative is to run TextTest via Python. First install Python then use the convenience script 'start_texttest_from_python.bat'. +For Windows users using start_texttest_from_python.bat, it's recommended to: +1. Install Meld (available at https://meldmerge.org) as your diff viewer +2. Set the text_diff_program to 'fc' in your config.gr file +3. Use Meld as your view_program for its simplicity and ease of use + ## Interpreting Test Results You should see output like this if the test passes: diff --git a/texttests/config.gr b/texttests/config.gr index 8bafed03..54f8f719 100755 --- a/texttests/config.gr +++ b/texttests/config.gr @@ -3,6 +3,8 @@ full_name:Gilded Rose Refactoring Kata # set your preferred editor and diff tool. view_program:subl diff_program:meld +#text_diff_program:fc + # Settings for the Python version #executable:${TEXTTEST_HOME}/python/texttest_fixture.py