Automatically generate test class when creating klass

10 views
Skip to first unread message

sprog

unread,
Aug 15, 2011, 5:32:07 PM8/15/11
to gator-g...@googlegroups.com
After help via Twitter I got it all working. Really nice!
I have been using sprout for my last project and there it would automatically generate the test klass when it doesn't exist and updates the AllTest.as class.

I am curious how I could implement something similar with Gator?

Dominic Graefen

unread,
Aug 15, 2011, 7:16:00 PM8/15/11
to gator-g...@googlegroups.com
You could write a AllTestGenerator that finds all the test classes and outputs the AllTest class.
Then you would call the AllTestGenerator from a TestGenerator pretty much the same way as i create tests in class generators and the other way around. 

-- 
Dominic Graefen
Freelance: Interactive Developer / Creative Technologist

Simon Bailey

unread,
Aug 15, 2011, 7:30:42 PM8/15/11
to gator-g...@googlegroups.com

devboy

unread,
Aug 16, 2011, 6:33:43 AM8/16/11
to gator-g...@googlegroups.com
We could also easily make it possible to have different suites for different tests depending on their package names.
Or we go for a config setting in the gator.rb project-file.
Reply all
Reply to author
Forward
0 new messages