{"id":19714025,"url":"https://github.com/grails/grails-functional-tests-v2","last_synced_at":"2025-04-29T18:31:46.986Z","repository":{"id":2253983,"uuid":"3209190","full_name":"grails/grails-functional-tests-v2","owner":"grails","description":null,"archived":true,"fork":false,"pushed_at":"2013-04-10T18:45:47.000Z","size":587,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-20T15:23:00.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grails.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-18T14:29:15.000Z","updated_at":"2024-12-05T02:41:50.000Z","dependencies_parsed_at":"2022-09-09T18:00:36.734Z","dependency_job_id":null,"html_url":"https://github.com/grails/grails-functional-tests-v2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grails%2Fgrails-functional-tests-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grails%2Fgrails-functional-tests-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grails%2Fgrails-functional-tests-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grails%2Fgrails-functional-tests-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grails","download_url":"https://codeload.github.com/grails/grails-functional-tests-v2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250736131,"owners_count":21478733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T22:28:22.629Z","updated_at":"2025-04-29T18:31:46.965Z","avatar_url":"https://github.com/grails.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grails Functional Test Suite v2\n\nNew version of the functional test suite for Grails based on Gradle, Spock and Geb.\n\nTests are found within the \u003ccode\u003esrc/test/groovy\u003c/code\u003e directory.\n\nA basic test looks like:\n\n\tclass RunAppSpec extends BaseSpec {\n\t    void \"Test run-app starts correctly\"() {\n\t        given:\"A new project\"\n\t            grails {\n\t                createApp \"test\"\n\t                runApp()\n\t            }\n            \n\t        when:\"The home page is requested\"\n\t            go \"\"\n\t        then:\"The Grails welcome page is shown\"\n\t            title == \"Welcome to Grails\"\n\t    }\n\t}\n\t\nThe above example creates a new project and tests it, deleting it on completion. To test an existing project you can instead use \u003ccode\u003eBaseApplicationSpec\u003c/code\u003e:\n\n\tclass RunAppSpec extends BaseApplicationSpec {\n\t\tString getApplication() { \"foo\" }\n\t\tvoid \"Test run-app starts correctly\"() {\n\t        when:\"The home page is requested\"\n\t            go \"\"\n\t        then:\"The Grails welcome page is shown\"\n\t            title == \"Welcome to Grails\"\t\t\t\n\t\t}\n\t}\n\t\nThe application needs to be created in the \"apps\" directory of the project before this test can be run.\n\nTests are executed using standard Gradle test command:\n\n\t./gradlew test\n\t\nRunning a single test can be done with:\n\n\t./gradlew -Dtest.single=RunApp test\n\t\nWhere \"RunApp\" above is the test name.\n\nBy default the test suite tries to look for GRAILS_HOME in the directories ../grails-core or ../grails-master. If you prefer to tell the suite where Grails is you can do:\n\n\t./gradlew -Dgrails.home=/path/to/grails test\n\nTests can also be run from the IDE. Just generate Eclipse or Intellij project files:\n\n\t./gradlew eclipse\n\t./gradlew idea\n\t\nImport the project into your IDE and run the specs directly.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrails%2Fgrails-functional-tests-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrails%2Fgrails-functional-tests-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrails%2Fgrails-functional-tests-v2/lists"}