Question: I have a java project in eclipse, when I press the `project right click -> run as junit` some tests do not run. I attached a picture, see `YamiMailSenderTest` for example.  

When I try to run the tests directly they are running.  

I am using eclipse 3.7.2. 

![enter image description here](https://i.stack.imgur.com/BoKqd.png)

and expanded view:

![enter image description here](https://i.stack.imgur.com/jQfKo.png)

Any idea?

Answer: 
Check if you are [excluding tests](https://stackoverflow.com/a/2383226/395659) from run by attributes and check under `Run > Run Configurations` if your JUnit configuration are excluding any tests.
I had the same problem. Eclipse would only recognize and run 5 out of my 9 tests. After much troubleshooting I found this trick to convince Eclipse to recognize the remaining tests: just open each file, hit space and then backspace to mark it as changed, and save it. Then, Eclipse will recognize it as a test.