test(core): remove hardcoded model from TestRig (#18710)

This commit is contained in:
N. Taylor Mullen
2026-02-09 23:54:23 -08:00
committed by GitHub
parent 4a3c7ae8b7
commit 67d9b76e81
3 changed files with 13 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ describe('Shell Efficiency', () => {
return typeof args === 'string' ? args : (args as any)['command'];
};
evalTest('ALWAYS_PASSES', {
evalTest('USUALLY_PASSES', {
name: 'should use --silent/--quiet flags when installing packages',
prompt: 'Install the "lodash" package using npm.',
assert: async (rig) => {
@@ -49,7 +49,7 @@ describe('Shell Efficiency', () => {
},
});
evalTest('ALWAYS_PASSES', {
evalTest('USUALLY_PASSES', {
name: 'should use --no-pager with git commands',
prompt: 'Show the git log.',
assert: async (rig) => {
@@ -72,7 +72,7 @@ describe('Shell Efficiency', () => {
},
});
evalTest('ALWAYS_PASSES', {
evalTest('USUALLY_PASSES', {
name: 'should NOT use efficiency flags when enableShellOutputEfficiency is disabled',
params: {
settings: {

View File

@@ -20,5 +20,8 @@ export default defineConfig({
maxThreads: 16,
},
},
env: {
GEMINI_TEST_TYPE: 'integration',
},
},
});

View File

@@ -408,9 +408,13 @@ export class TestRig {
ui: {
useAlternateBuffer: true,
},
model: {
name: DEFAULT_GEMINI_MODEL,
},
...(env['GEMINI_TEST_TYPE'] === 'integration'
? {
model: {
name: DEFAULT_GEMINI_MODEL,
},
}
: {}),
sandbox:
env['GEMINI_SANDBOX'] !== 'false' ? env['GEMINI_SANDBOX'] : false,
// Don't show the IDE connection dialog when running from VsCode