Skip to content

Commit

Permalink
Merge branch 'master' of ssh://github.com/mjhugo/grails-auto-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hugo committed Dec 10, 2012
2 parents a821f27 + 4d246af commit 7de1ce6
Show file tree
Hide file tree
Showing 22 changed files with 1,121 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -8,4 +8,5 @@ test/project/bookstore/web-app/WEB-INF/tld/fmt.tld
.DS_Store
target/
grails-auto-test-*.zip
plugin.xml
plugin.xml
web-app
9 changes: 6 additions & 3 deletions AutoTestGrailsPlugin.groovy
Expand Up @@ -10,10 +10,13 @@ class AutoTestGrailsPlugin {
def author = "Bjoern Wilmsmann, Mike Hugo"
def authorEmail = "bjoern@metasieve.com, mike@piragua.com"
def title = "Auto test plugin"
def description = '''\\
Auto test plugin.
def description = '''\
Provides continuous testing for your Grails projects. Run a single command and then every time you save a file,\
the relevant tests will run. Great for instant feedback while you're coding.\
'''

def documentation = "http://grails.org/plugin/auto-test"

def license = "APACHE"
def scm = [url: "https://github.com/mjhugo/grails-auto-test"]
def issueManagement = [system: "JIRA", url: "http://jira.grails.org/browse/GPAUTOTEST"]
}
16 changes: 14 additions & 2 deletions README.md
Expand Up @@ -5,9 +5,13 @@
- Björn Wilmsmann, MetaSieve
- Mike Hugo

## Modifications Made By

- Chris Sterling

## Grails support

Version 1.0 of this plugin will only work with Grails 2.0 or higher. If you have a Grails application using a version of grails prior to 2.0, please use version 0.1 of this plugin
Version 1.0 of this plugin works with Grails 2.0 or higher. If you have a Grails application using a version of grails prior to 2.0, please use version 0.1 of this plugin

## Usage

Expand All @@ -21,7 +25,15 @@ The plugin will monitor the project directory and will attempt to run only the s

Example usage screencast: http://youtu.be/7qLuDlJqFwY

Currently, there is no support for running the __entire__ test suite when something is changed (which is the way the plugin behaved in previous versions). This will be added in a future release.
In order to run functional tests continually upon changes, the application must be started separately and the "-baseUrl" command line arg must be used to run against already started instance. Here is an example:

```
$ grails
| Enter a script name to run. Use TAB for completion:
grails> run-app
| Server running. Browse to http://localhost:8080/app
grails> auto-test -baseUrl=http://localhost:8080/app/
```

## Support

Expand Down
8 changes: 6 additions & 2 deletions application.properties
@@ -1,2 +1,6 @@
app.grails.version=2.0.0
app.name=AutoTest
#Grails Metadata file
#Sat Dec 08 13:14:32 PST 2012
app.grails.version=2.2.0.RC1
app.name=AutoTest
plugins.hibernate=2.1.0
plugins.tomcat=2.1.0

0 comments on commit 7de1ce6

Please sign in to comment.