Here's a question

I've been practicting Test Driven Development pretty religiously for about a year now. That and the reading I've done on design patterns and software architecture have dramatically improved my software design and quality. I've got an automated build server set up as well.

That said, I need to print a Reporting Services report directly to the printer. I have code that works, but I haven't been able to figure out how to write a unit test for this that can be executed by the build server. I don't want the build server to send the report to an in-house printer everytime it runs. I'd much rather print it to a file, but a file printer asks for user input (the file name).

Any ideas?

Comments

# re: Here's a question

Monday, April 17, 2006 6:27 PM by Ayende Rahien

How are you going to verify the printed output?
I'm pretty sure that it is possible to programatically set the file output. At worst,you're looking at doing it via mocking the UI for the system itself.

I would suggest you would ask in the TDD mailing list here:
http://groups.yahoo.com/group/testdrivendevelopment/

# re: Here's a question

Monday, April 17, 2006 10:19 PM by Chris

What I do is print to pdf. You can download pdfcreator for free and set it to print to a pdf in a directory without asking for the filename.

http://sourceforge.net/projects/pdfcreator/

If you have any questions send me an email to cdonges at google's web email service.

Leave a Comment

(required) 
(required) 
(optional)
(required)