Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Author Topic: Re: Integrating Unit Tests into current project  (Read 5812 times)

« on: July 02, 2008, 03:01:12 »

I feel your pain  :'(

I have been doing this exact same thing for the last couple of weeks and there is virtually no information available on how to apply unit testing with puremvc.

I've read some posts on this forum about this subject but they're more like suggestions because I think no one still knows how to properly unit test their apps. I too was hoping for a tutorial or best practices guide on this but I think this is still a ways off.

The next best thing is if someone (who has this figured out) could post/share a demo of a real working application with a tight unit testing (preferably flexunit) integration.

After reading the posts on unit testing, trying out somethings to really experience the troubles firsthand, and re-reading these posts, I think I'm finally starting to see the light.
The only problem is, is that I have no idea if what I'm doing is the "correct way" to do it cuz there is nothing to compare it to.

So I suggest that we all think about this problem and post our ideas and findings to sort this thing out once and for all.
Maybe we could even get a best practices guide out of all this  8)

I'll keep you posted on my progress.

« Reply #1 on: July 04, 2008, 02:31:13 »

These are the posts that I could find on unit testing that gave me some ideas.

Unit Tests for my pureMVC proxies with asyncronous data: http://forums.puremvc.org/index.php?topic=213.0
Testing practices for Pure MVC: http://forums.puremvc.org/index.php?topic=276.0
Question: Unit testing a command: http://forums.puremvc.org/index.php?topic=470.0
PureMVC FlexUnit Testing: http://forums.puremvc.org/index.php?topic=507.0
Testing a mediator: http://forums.puremvc.org/index.php?topic=419.0
unit testing, how to start: http://forums.puremvc.org/index.php?topic=462.0

I especially found the first two very helpful.
Good luck everyone  ;)
Pages: [1]