[Windmill-dev] Python test suites
Mikeal Rogers
mikeal at osafoundation.org
Tue Dec 18 12:59:02 PST 2007
You've found an important deficiency in the documentation.
Basically test module names need to begin with "test". Modules that
don't begin with "test" are ignored so that you can include test
directories inside of your Python code base.
http://windmill.osafoundation.org/trac/wiki/BookChapter-5-RunningTests#OrganizingTests
I updated it and put in some changes I talked about with mde, de-
emphasizing the "python" from the most basic case of running a single
directory of JSON tests.
-Mikeal
On Dec 18, 2007, at December 18, 200712:50 PM, Robert Leftwich wrote:
> I note that Chapter 5 of the book has a section on organising tests,
> but
> it only mentions running json tests using a directory structure. I
> quickly tried to do the same with a set of python tests but they are
> not
> all being run. Passing individual directories on the command line
>
> windmill shell firefox extensions=./wm/ext test=./wm/wm_test/test1/
> http://localhost
>
> works as expected, running the multiple tests in the test1 directory
> as
> individual suites.
>
> But specifying the parent directory does not, e.g.:
>
> windmill shell firefox extensions=./wm/ext test=./wm/wm_test/
> http://localhost
>
> Have I missed something?
>
> Robert
>
> PS all the directories have an __init__.py
> PPS this is on rev 622
> _______________________________________________
> Windmill-dev mailing list
> Windmill-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/windmill-dev
More information about the Windmill-dev
mailing list