Running ForgotPasswordFormControllerTest

classic Classic list List threaded Threaded
4 messages Options
Ben Fulton Ben Fulton
Reply | Threaded
Open this post in threaded view
|

Running ForgotPasswordFormControllerTest

I wanted to look at another introductory ticket, so I chose TRUNK-2556, "Warnings when running ForgotPasswordFormControllerTest". But I'm confused by the fact that right-clicking on that class in Eclipse does not allow "Run as JUnit Test" in the way that tests in the other projects do. Is there something I need to do to enable this in Eclipse?

Thanks!

Ben Fulton


[hidden email] from OpenMRS Developers' mailing list
Darius Jazayeri-3 Darius Jazayeri-3
Reply | Threaded
Open this post in threaded view
|

Re: Running ForgotPasswordFormControllerTest

Hi Ben,

I checked, and in my Eclipse setup (I have the 1.9.x branch checked out, and I'm running Eclipse  Indigo Service Release 2) that file behaves just like others. (I.e. Run As -> JUnit Test works.)

I don't know what might be up in your setup. Check to make sure you've opened the file in the default java editor rather than as plain-text, and look at the Markers view to see if your project configuration is right.

-Darius

On Tue, May 1, 2012 at 4:08 PM, Ben Fulton <[hidden email]> wrote:
I wanted to look at another introductory ticket, so I chose TRUNK-2556, "Warnings when running ForgotPasswordFormControllerTest". But I'm confused by the fact that right-clicking on that class in Eclipse does not allow "Run as JUnit Test" in the way that tests in the other projects do. Is there something I need to do to enable this in Eclipse?

Thanks!

Ben Fulton


[hidden email] from OpenMRS Developers' mailing list


[hidden email] from OpenMRS Developers' mailing list
Ben Wolfe (openmrs) Ben Wolfe (openmrs)
Reply | Threaded
Open this post in threaded view
|

Re: Running ForgotPasswordFormControllerTest

You might be opening the file from the "openmrs" project instead of the "openmrs-web" one. That first of the 6 projects that eclipse creates for mavenized openmrs is a grouping project that includes all the others. BUT it is not a java project itself. Therefore eclipse doesn't know how to handle things like compiling or running off unit tests.

Ben

On May 1, 2012 7:59 PM, "Darius Jazayeri" <[hidden email]> wrote:
Hi Ben,

I checked, and in my Eclipse setup (I have the 1.9.x branch checked out, and I'm running Eclipse  Indigo Service Release 2) that file behaves just like others. (I.e. Run As -> JUnit Test works.)

I don't know what might be up in your setup. Check to make sure you've opened the file in the default java editor rather than as plain-text, and look at the Markers view to see if your project configuration is right.

-Darius

On Tue, May 1, 2012 at 4:08 PM, Ben Fulton <[hidden email]> wrote:
I wanted to look at another introductory ticket, so I chose TRUNK-2556, "Warnings when running ForgotPasswordFormControllerTest". But I'm confused by the fact that right-clicking on that class in Eclipse does not allow "Run as JUnit Test" in the way that tests in the other projects do. Is there something I need to do to enable this in Eclipse?

Thanks!

Ben Fulton


[hidden email] from OpenMRS Developers' mailing list


[hidden email] from OpenMRS Developers' mailing list

[hidden email] from OpenMRS Developers' mailing list
Ben Fulton Ben Fulton
Reply | Threaded
Open this post in threaded view
|

Re: Running ForgotPasswordFormControllerTest

I see. Yes, that was the issue. Thanks!

On Fri, May 4, 2012 at 9:07 PM, Ben Wolfe <[hidden email]> wrote:

You might be opening the file from the "openmrs" project instead of the "openmrs-web" one. That first of the 6 projects that eclipse creates for mavenized openmrs is a grouping project that includes all the others. BUT it is not a java project itself. Therefore eclipse doesn't know how to handle things like compiling or running off unit tests.

Ben

On May 1, 2012 7:59 PM, "Darius Jazayeri" <[hidden email]> wrote:
Hi Ben,

I checked, and in my Eclipse setup (I have the 1.9.x branch checked out, and I'm running Eclipse  Indigo Service Release 2) that file behaves just like others. (I.e. Run As -> JUnit Test works.)

I don't know what might be up in your setup. Check to make sure you've opened the file in the default java editor rather than as plain-text, and look at the Markers view to see if your project configuration is right.

-Darius

On Tue, May 1, 2012 at 4:08 PM, Ben Fulton <[hidden email]> wrote:
I wanted to look at another introductory ticket, so I chose TRUNK-2556, "Warnings when running ForgotPasswordFormControllerTest". But I'm confused by the fact that right-clicking on that class in Eclipse does not allow "Run as JUnit Test" in the way that tests in the other projects do. Is there something I need to do to enable this in Eclipse?

Thanks!

Ben Fulton


[hidden email] from OpenMRS Developers' mailing list


[hidden email] from OpenMRS Developers' mailing list

[hidden email] from OpenMRS Developers' mailing list


[hidden email] from OpenMRS Developers' mailing list