(Quick Reference)

create-integration-test

Purpose

The create-integration-test command creates an integration test for the given base name.

Examples

Propósito

El comando create-integration-test crea un test de integración para el dominio de clase dado.

Ejemplo

grails create-integration-test book

Description

Creates an integration test for the given base name. For example for a base name "org.bookstore.book" an integration test called BookTests will be created in the test/integration/org/bookstore directory.

An integration test differs from a unit test in that the Grails environment is loaded for each test execution. Refer to the section on Unit Testing of the user guide for information on unit vs. integration testing.

Note that this command is just for convenience and you can also create integration tests in your favourite text editor or IDE if you choose.

Usage:

Descripción

Crea un test de integración para el domio de clase dado. Por ejemplo para el nombre base "org.bookstore.book" se creará un test de integración llamado BookTests in el directorio test/integration/org/bookstore.

Un prueba de integración difiera de una unitaria en que el entorno Grails es cargado en cada ejecución de test. Para más información, consulte la sección de Unit Testing en la guía de usuario

Tenga en cuenta que este comando es para su convenencia y puede crear test de integración desde su editor de texto o IDE favorito si lo desea.

Uso:

grails create-integration-test [name]

Fired Events:

  • CreatedFile - When the integration test is created

  • CreatedFile - Cuando el test de integración se crea.