I am given a javascript function which takes as input some numbers and returns the max, as a part of a project at the university, and I have to test it, using Selenium, JUnit, Ant and JScover. I have seen some tutorials about each one individually(ant manual,JUnit Tutorial,Selenium tutorial) and I have understood that JScover just graphically presents you the results of the test.
However, I have difficulties understanding the difference between Selenium, JUnit and Ant. I also do not know how to start making test cases. I have eclipse installed, and I have the function, but how I am supposed to combine the three, and what I should do in each one?
Do you also know any example which uses those that can help me?