mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
tests/gemini-cli: add context tests
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
e2d346936e
commit
5ead1867bb
4 changed files with 43 additions and 0 deletions
11
tests/modules/programs/gemini-cli/context-source.nix
Normal file
11
tests/modules/programs/gemini-cli/context-source.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
programs.gemini-cli = {
|
||||
enable = true;
|
||||
context = ./context.md;
|
||||
};
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.gemini/GEMINI.md
|
||||
assertFileContent home-files/.gemini/GEMINI.md \
|
||||
${./context.md}
|
||||
'';
|
||||
}
|
||||
9
tests/modules/programs/gemini-cli/context.md
Normal file
9
tests/modules/programs/gemini-cli/context.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Global Context
|
||||
|
||||
You are a helpful AI assistant for software development.
|
||||
|
||||
## Coding Standards
|
||||
|
||||
- Follow consistent code style
|
||||
- Write clear comments
|
||||
- Test your changes
|
||||
21
tests/modules/programs/gemini-cli/context.nix
Normal file
21
tests/modules/programs/gemini-cli/context.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
programs.gemini-cli = {
|
||||
enable = true;
|
||||
context = ''
|
||||
# Global Context
|
||||
|
||||
You are a helpful AI assistant for software development.
|
||||
|
||||
## Coding Standards
|
||||
|
||||
- Follow consistent code style
|
||||
- Write clear comments
|
||||
- Test your changes
|
||||
'';
|
||||
};
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.gemini/GEMINI.md
|
||||
assertFileContent home-files/.gemini/GEMINI.md \
|
||||
${./context.md}
|
||||
'';
|
||||
}
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
{
|
||||
gemini-cli-settings = ./settings.nix;
|
||||
gemini-cli-context = ./context.nix;
|
||||
gemini-cli-context-source = ./context-source.nix;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue