janhoy opened a new pull request, #3810:
URL: https://github.com/apache/solr/pull/3810

   https://issues.apache.org/jira/browse/SOLR-17508
   
   Toy project to try to replicate the BATS tests for Windows, using the Pester 
test framework for Powershell (https://pester.dev). With aid of Claude Code, 
this branch was written in one go in literally 3 minutes. 
   It includes a github PR workflow test running windows, so we'll have a way 
to run it. Here's the prompt used:
   
   ```
   You'll now get a greenfield task. In Solr we use BATS test framework for 
automated testing of start/stop 
   solr and CLI tools. We do not have similar support for testing on Windows 
commands. You will integrate 
   Pester (test/test_version.bats) tests.
   
   The approach we'll take is to "port" each BATS test to windows, as the CLI 
commands are supposed to 
   be identical, except the obvious differences between bash and Powershell.
   
   As a start, I want you to port the solr/packaging/test/test_version.bats 
test.
   - First, create a folder 'powershell-tests' under solr/packaging.
   - Then, integrate pester in our unit test framework by peeking at how it's 
done in solr:packaging:integrationTests task
   - Create a new task for this, it should only run when on windows.
   - Next, port the bats test 'test_version.bats' over.
   
   I don't have windows, only Mac, so give me a hint on how I can test this. I 
can spin up a Windows VM 
   and check out this branch there and test, but is there a smarter way like 
Wine or something that runs on 
   mac? 
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to