diff --git a/cli/commands.mdx b/cli/commands.mdx index b7be1ddb2..cc297896c 100644 --- a/cli/commands.mdx +++ b/cli/commands.mdx @@ -559,7 +559,7 @@ mint validate [flags] ## `mint test` -Generate and run tests for the code samples in your documentation. +Generate tests from your code samples in your documentation. Requires authentication with `mint login`. ```bash mint test @@ -589,6 +589,14 @@ Only pages in your `docs.json` navigation appear for selection. /> +### Revisit a previous run + +`mint test` saves a report for each completed run. When a saved report exists, the next interactive run starts with options for it: + +- **Update tests**: Rerun the same pages with the same agent and model. +- **Review last test run**: Browse the saved results without running anything. +- **Start a brand new test**: Select an agent and pages from scratch. + ### Output The `mint test` command writes to two locations in your project: diff --git a/es/cli/commands.mdx b/es/cli/commands.mdx index 73b47350d..5835b0c95 100644 --- a/es/cli/commands.mdx +++ b/es/cli/commands.mdx @@ -622,7 +622,7 @@ mint validate [flags] ## `mint test` -Genera y ejecuta pruebas para los ejemplos de código de tu documentación. +Genera pruebas a partir de los ejemplos de código de tu documentación. Requiere autenticación con `mint login`. ```bash mint test @@ -654,6 +654,16 @@ Solo las páginas incluidas en la navegación de tu `docs.json` aparecen para su /> +
+ ### Volver a una ejecución anterior +
+ +`mint test` guarda un informe de cada ejecución completada. Cuando existe un informe guardado, la siguiente ejecución interactiva comienza con opciones para esa ejecución: + +- **Update tests**: vuelve a ejecutar las mismas páginas con el mismo agente y modelo. +- **Review last test run**: consulta los resultados guardados sin ejecutar nada. +- **Start a brand new test**: selecciona un agente y páginas desde cero. +
### Salida
diff --git a/fr/cli/commands.mdx b/fr/cli/commands.mdx index 03eb8d645..6d4e4cb2d 100644 --- a/fr/cli/commands.mdx +++ b/fr/cli/commands.mdx @@ -624,7 +624,7 @@ mint validate [flags] ## `mint test` -Générez et exécutez des tests pour les exemples de code de votre documentation. +Générez des tests à partir des exemples de code de votre documentation. Nécessite une authentification avec `mint login`. ```bash mint test @@ -656,6 +656,16 @@ Seules les pages présentes dans la navigation de votre `docs.json` apparaissent /> +
+ ### Revenir à une exécution précédente +
+ +`mint test` enregistre un rapport pour chaque exécution terminée. Lorsqu'un rapport enregistré existe, la prochaine exécution interactive commence par des options pour cette exécution : + +- **Update tests** : réexécute les mêmes pages avec le même agent et le même modèle. +- **Review last test run** : consultez les résultats enregistrés sans rien exécuter. +- **Start a brand new test** : sélectionnez un agent et des pages depuis le début. +
### Sortie
diff --git a/zh/cli/commands.mdx b/zh/cli/commands.mdx index 2a2e87041..eaf4463bb 100644 --- a/zh/cli/commands.mdx +++ b/zh/cli/commands.mdx @@ -1,7 +1,7 @@ --- title: "Mintlify CLI 命令参考" sidebarTitle: "命令参考" -description: "Mintlify CLI 命令和选项的完整参考,涵盖 mint index、mint dev、mint validate、mint broken-links 等命令。" +description: "Mintlify CLI 命令和选项的完整参考,涵盖 mint index、mint dev、mint validate、mint broken-links 等。" keywords: ["CLI", "mint", "命令", "选项", "参考"] boost: 3 --- @@ -624,7 +624,7 @@ mint validate [flags] ## `mint test` -为文档中的代码示例生成并运行测试。 +根据文档中的代码示例生成测试。需要使用 `mint login` 进行身份验证。 ```bash mint test @@ -656,6 +656,16 @@ mint test /> +
+ ### 回顾上一次运行 +
+ +`mint test` 会为每次完成的运行保存报告。如果存在已保存的报告,下一次交互式运行会先显示针对该运行的选项: + +- **Update tests**:使用相同的代理和模型重新运行相同的页面。 +- **Review last test run**:查看已保存的结果,而不运行任何内容。 +- **Start a brand new test**:从头选择代理和页面。 +
### 输出