Using CassiniDev in StatLight

Coordinator
Oct 3, 2010 at 12:57 AM
Edited Oct 3, 2010 at 12:58 AM

Hello Sky

(This is a redirected discussion from this thread... http://statlight.codeplex.com/Thread/View.aspx?ThreadId=226489)

CassiniDev is the greatest thing since sliced bread... 

I'm using it in my integration tests for StatLight.

I've also used it at work in some MVC integration testing - works great so far...

Anything specific you are wondering about StatLight use of CassiniDev?

Oct 3, 2010 at 1:10 AM

no. just fishing for a compliment.  The above posted would look great as a review on the CassiniDev project. ;-)

Seriously, though....

Yes. I previously took a look at statlight, admittedly brief, for testing of a couple libraries but was under pressure and the intellectual cover charge appeared to surpass both the SL test framework and SL Nunit tests, so I went with those at the time.

I need to write a fresh batch of tests for silverlight.sharpziplib that are relevant in the current environment and would like to use statlight and cassinidev.

I typically don't need hand-holding but if you have a simple build and run example of this scenario that I could download as a kick-start I would be very happy.

 

Also, is there anything that you can think of that would make cassinidev more suitable for either statlight or MVC testing?

 

 

Coordinator
Oct 3, 2010 at 1:22 AM

SharpZipLib is a purely client side zipping library right? I'm curious as to why you would need it in conjunction with CassiniDev?

 

Oct 3, 2010 at 1:30 AM
Edited Oct 3, 2010 at 1:35 AM

 

Silverlight.SharpZipLib is a complete port of SharpZipLib to SL3/4 WP7, http://slsharpziplib.codeplex.com/ so the client is Silverlight. 

rob_houweling did a partial port several years ago and I recently took over the project and produced a new port of the current #ZL code base and added some ISO aware ZIP features.

 

But as I read your reply, it occurs to me that I may misunderstand how statlight works.

Are you saying that I can test a library without serving it up?  That would equate to the NUnit tests, which I find brittle and dated but somewhat useful.

Another issue is integration testing and tests as example that I would like to run in the context of a sandbox, which I assume would not be the case if statlight were to be able to test libraries oob.

 

Coordinator
Oct 3, 2010 at 1:38 AM
why do you Need cassinidev in your testing of sharpziplib. I do have on my todo list an item to add a wiki page about how to integrate statlight tests with an external service (like casino dev).
Coordinator
Oct 3, 2010 at 1:47 AM

I've been working on the documentation quite a bit lately, and am realizing that I probably need to expand on the general concept of how statlight works...

StatLight is essentially a console application that will spin up a web service, spin up a browser and load a StatLight Host xap into the browser. The host xap then requests from the web server the xap to test (your xap). It loads all the assemblies from your xap into the appdomain and runs the tests in there. Reporting all the information back to the web server. Where we can then either write it out to the console, or xml report.

Hope this helps a little... I'll try to spend some time on "basics of StatLight" documentation in the near future.

Coordinator
Oct 3, 2010 at 1:49 AM

BTW - StatLight doesn't leverage CassiniDEV to be the "web service" (in the post above). It's built on the wcf .net framework classes. I'm only using CassiniDev to spin up an external service (outside of StatLight) to do an integration test (and as a proof of concept) that you can run tests in statlight that point to external services.

Oct 3, 2010 at 1:56 AM
I guess my edit of the previous post did not hit your inbox. That may clear up my intentions.

Your explanation raises the question as to what webserver (reads as web service in the message but I am guessing this is a typo) that you are spinning up to serve the xap. I suppose the webserver for your intents needs only the most basic functionality and is embedded. Correct?
Oct 3, 2010 at 1:57 AM

ok- it looks like you are replying to the mailing list and I am using the site and we are missing each other. 

It looks like you have answered my questions.