[
https://issues.apache.org/jira/browse/SOLR-17508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18033135#comment-18033135
]
Jan Høydahl commented on SOLR-17508:
------------------------------------
I have started experimenting with the Pester and have a PR which integrates it
into Gradle, compiles Solr and runs the "Version" test successfully. See
[https://github.com/apache/solr/pull/3810]
I think we can accept "duplication" of these test in the short term, the value
of having SOME windows specific script tests is so valuable for PRs touching
.cmd files.
[~malliaridis] If we in the future manage to build something that lets us
define the tests themselves once but run on both platforms, that could be
interesting. However, I don't think it is right to build a fully fledged CLI
testing framework with all the corner cases, exception handling, IO parsing,
cleanup etc needed to be reliable.
> Integration tests of bin/solr.cmd on Windows
> --------------------------------------------
>
> Key: SOLR-17508
> URL: https://issues.apache.org/jira/browse/SOLR-17508
> Project: Solr
> Issue Type: Task
> Components: scripts and tools, test-framework
> Reporter: Jan Høydahl
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> For Linux we have BATS that runs integration tests. For Windows we do not
> have anything, so it is not uncommon that bin/solr.cmd is buggy after
> touching the scripts.
> In this issue I propose looking at [https://github.com/pester/Pester] to try
> to write some integration tests for bin/solr.cmd. It is a test framework for
> Powershell, and is able to execute commands and check their output.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]