-
Notifications
You must be signed in to change notification settings - Fork 304
Tests for non-priviledged commands #283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
will-lms
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is failing
Error: A branch or tag with the name 'rugved/lm' could not be found
Is something about the regex match not working?
Fixed |
| # mkdir -p /.lmstudio/hub/models/google | ||
| # cd /.lmstudio/hub/models/google | ||
| # lms clone google/gemma-3-1b | ||
| # mkdir -p /.lmstudio/models/lmstudio-community/gemma-3-1b-it-GGUF | ||
| # cd /.lmstudio/models/lmstudio-community/gemma-3-1b-it-GGUF | ||
| # if ! command -v wget &> /dev/null; then | ||
| # apt-get update | ||
| # apt-get install -y wget | ||
| # fi | ||
| # wget --quiet -P /tmp https://models.lmstudio.ai/models/gemma-3-1b-it-Q4_K_M.gguf && mv /tmp/gemma-3-1b-it-Q4_K_M.gguf gemma-3-1b-it-Q4_K_M.gguf | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be removed?
| const cliPath = path.join(__dirname, TEST_CLI_PATH); | ||
|
|
||
| describe("version command", () => { | ||
| it("should display version with ASCII art", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still find this test name to be misleading, as it is not actually testing for the existence of ASCII art.
Also it does not check the key part of the output -- the version. It should make sure the version is present in the output, or at least some v\d+\.\d+\.\d+ check.
Overview
This brings the first batch of tests which are for non-privileged features and for the commands which don't require some changes to make them 'test-friendly' (example is
createcommand which does not have a one liner approach to run yet)This PR includes tests for:
Rest of the subcommands tests will be made in separate PRs.
Below is a new format of specifying branch for a specific submodule, as example in this branch the tests would be run on
rugved/lms-cli-testsbranch oflmstudio.jsbecause that has the logic of runninglms-clitests and the current branch oflms-clilmstudio-js-branch:rugved/lms-cli-tests