-
Notifications
You must be signed in to change notification settings - Fork 554
Auto test
gaku edited this page Dec 20, 2014
·
7 revisions
There are two ways to run tests automatically with GoConvey: in the terminal or in the browser.
For viewing test reports in the terminal, use something like auto-run.py, which was at one time bundled with GoConvey. First download the script and put it somewhere on your path.
cd <folder_with_tests_or_packages>
auto-run.py -v
Run this from your project's top-level folder, and any changes to .go
files under your current directory will trigger tests to run. The -v
option enables "verbose" mode, and is entirely optional.
When you use the web UI to watch test results, tests are already run automatically.
One of the advantages with method #2 (in the browser) is that tests are run across multiple goroutines to bring results back as fast as possible.