1
0
Fork 0
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:
Austin Horstman 2025-10-12 17:21:01 -05:00
parent e2d346936e
commit 5ead1867bb
4 changed files with 43 additions and 0 deletions

View 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}
'';
}

View 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

View 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}
'';
}

View file

@ -1,3 +1,5 @@
{
gemini-cli-settings = ./settings.nix;
gemini-cli-context = ./context.nix;
gemini-cli-context-source = ./context-source.nix;
}