dominickm / jupiter_broadcasting_mobile_community

The Jupiter Broadcasting community project.
Other
100 stars 17 forks source link

Unit Testing #10

Closed ograycode closed 11 years ago

ograycode commented 12 years ago

I think we should have the discussion of unit testing. Are we going to strive for 100%, non-html and css, unit tested code? Should it be part of a pull request requirement? If so, what frameworks will we be using? I'm not that involved in Javascript, or iOS development, so I don't know what is available. I know Android has a unit testing framework already.

dominickm commented 12 years ago

@hothead2 hmm not sure I know of a good testing framework that works well with PG?

ograycode commented 12 years ago

I looked into it, and I can't find much in the way of unit testing PG. Perhaps with something like selenium, but I haven't found much of anything.

HannesBenson commented 12 years ago

Hey there, I just started looking at this this morning. How about Jasmine?

ograycode commented 11 years ago

I still think we should do this...

I think we should do unit testing on the application, if for nothing else than peace of mind -- especially since we greatly loosened the commit requirements. However, I don't have much expertise in this area of javascript land. I know there are several available, but not sure which would be best. I would like to be able to test the DOM as well as the logic.

Jasmine seems to have an extension for DOM testing. Does anyone have any suggestions?

ShaneQful commented 11 years ago

I'm cool with whatever so long as you can test functions with DOM manipulation because otherwise a large proportion of the js will not be testable.