[
https://issues.apache.org/jira/browse/SOLR-17508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17896925#comment-17896925
]
Christos Malliaridis commented on SOLR-17508:
---------------------------------------------
I'd love to see a more cross-platform implementation for both the CLI and tests
and avoid duplicating the logic for each platform. I am experimenting with a
Kotlin CLI implementation using Clikt and I was already able to start a Solr
instance with a generated script (gradle application) and the entire logic of
argument parsing in Kotlin.
This means that it is possible to migrate the scripts even further and have
more code live inside Java, rather than in the CLI scripts. If we use a script
only as an entrypoint to pass the arguments from the CLI to a java application
/ class, we could write all tests with JUnit.
> 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
>
> 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]