barjo / atmosphere-osgi

A simple OSGi service which encapsulate an atmosphere framework.
6 stars 3 forks source link

Add test cases. #6

Open barjo opened 10 years ago

sergehuber commented 10 years ago

Yes this would be great. Are you thinking about integration tests or unit tests ? I believe integration tests would make more sense but maybe unit tests could be done too (although I'm not too sure what they would do :))

Maybe something like Pax Exam (https://ops4j1.jira.com/wiki/display/PAXEXAM3/Pax+Exam) and Selenium (http://www.seleniumhq.org) could be helpful for developing the tests ?

barjo commented 10 years ago

Yes I have some experience with Pax exam for the unit test, it's a bit cumbersome but nothing too bad. For now I was mostly thinking of integration test, just be sure that the service is publish the component valid, we don't want to 're test' atmosphere itself. The test will look something like that: https://github.com/barjo/arvensis/blob/develop/jax-rs/jersey-exporter-it/src/test/java/org/ow2/chameleon/rose/rest/JerseyExporterTest.java. I will see about using PAX Exam 3, one of my friend have some test case on OSGi with it.

sergehuber commented 10 years ago

OK I was thinking that maybe using some kind of end to end testing such as Jasmine or Selenium could be useful to make sure that things like detection work on different browsers ?

But of course this would be a lot more complex to do.