mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
tests/gemini-cli: add context tests
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user