mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 14:10:37 -07:00
test(core): remove hardcoded model from TestRig (#18710)
This commit is contained in:
@@ -20,7 +20,7 @@ describe('Shell Efficiency', () => {
|
|||||||
return typeof args === 'string' ? args : (args as any)['command'];
|
return typeof args === 'string' ? args : (args as any)['command'];
|
||||||
};
|
};
|
||||||
|
|
||||||
evalTest('ALWAYS_PASSES', {
|
evalTest('USUALLY_PASSES', {
|
||||||
name: 'should use --silent/--quiet flags when installing packages',
|
name: 'should use --silent/--quiet flags when installing packages',
|
||||||
prompt: 'Install the "lodash" package using npm.',
|
prompt: 'Install the "lodash" package using npm.',
|
||||||
assert: async (rig) => {
|
assert: async (rig) => {
|
||||||
@@ -49,7 +49,7 @@ describe('Shell Efficiency', () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
evalTest('ALWAYS_PASSES', {
|
evalTest('USUALLY_PASSES', {
|
||||||
name: 'should use --no-pager with git commands',
|
name: 'should use --no-pager with git commands',
|
||||||
prompt: 'Show the git log.',
|
prompt: 'Show the git log.',
|
||||||
assert: async (rig) => {
|
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',
|
name: 'should NOT use efficiency flags when enableShellOutputEfficiency is disabled',
|
||||||
params: {
|
params: {
|
||||||
settings: {
|
settings: {
|
||||||
|
|||||||
@@ -20,5 +20,8 @@ export default defineConfig({
|
|||||||
maxThreads: 16,
|
maxThreads: 16,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
env: {
|
||||||
|
GEMINI_TEST_TYPE: 'integration',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -408,9 +408,13 @@ export class TestRig {
|
|||||||
ui: {
|
ui: {
|
||||||
useAlternateBuffer: true,
|
useAlternateBuffer: true,
|
||||||
},
|
},
|
||||||
model: {
|
...(env['GEMINI_TEST_TYPE'] === 'integration'
|
||||||
name: DEFAULT_GEMINI_MODEL,
|
? {
|
||||||
},
|
model: {
|
||||||
|
name: DEFAULT_GEMINI_MODEL,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
: {}),
|
||||||
sandbox:
|
sandbox:
|
||||||
env['GEMINI_SANDBOX'] !== 'false' ? env['GEMINI_SANDBOX'] : false,
|
env['GEMINI_SANDBOX'] !== 'false' ? env['GEMINI_SANDBOX'] : false,
|
||||||
// Don't show the IDE connection dialog when running from VsCode
|
// Don't show the IDE connection dialog when running from VsCode
|
||||||
|
|||||||
Reference in New Issue
Block a user