5 Replies Latest reply on Mar 19, 2009 7:04 PM by Tim Evers

    JSFUnit in Eclipse wiki page

    Tim Evers Master

      Hey guys.

      For those of you that would like to run your JSFUnit tests from within Eclipse check out http://www.jboss.org/community/docs/DOC-13427 for a quick guide on how to get it working.

      Let me know if I missed anything :)

      Cheers,
      Tim Evers

        • 1. Re: JSFUnit in Eclipse wiki page
          Stan Silvert Master

          Thanks Tim! Looks great.

          • 2. Re: JSFUnit in Eclipse wiki page
            Wolfgang Knauf Master

            Thanks Tim, this was very helpful! I didn't know it was so easy ;-).

            I added another way of configuring a Run Configuration to your wiki entry.

            Wolfgang

            • 3. Re: JSFUnit in Eclipse wiki page
              Tim Evers Master

              Excelent! Thanks :)

              I had had a few problems with the Run Configuration way of doing it. Maybe you could tell me if I'm missing something.

              If I want to run a single test Eclipse creates a brand new Run Configuration. So, this means that for every test I have in my app, I have to add the VM argument to it's run configuration.

              Is there some way of setting it up so that all Tests run under a configuration. But I don't want to run all my tests at the same time.

              Hope this makes sense.

              • 4. Re: JSFUnit in Eclipse wiki page
                Wolfgang Knauf Master

                Hi,

                how do you start tests? Right click on class, then "Run as" => "JUnit test"? This will probably create a run configuration for each single test class, yes.
                If you want to test another class with this same configuration, you will probably need to switch the "Test class" entry of the configuration each time. Not very handy ;-)....

                Hope I understood your question correct ;-).

                Wolfgang

                • 5. Re: JSFUnit in Eclipse wiki page
                  Tim Evers Master

                  Yeah you understood the question. :)

                  I'm really don't like the idea of switching the 'Test Class' every time I want to run a single class. Seems rather counter intuative.

                  I should probably bring this up with the Eclipse guys, but not sure I'll get around to it at the moment seeings for the time being it is really not hindering me. As long as I am working on only 1 application the default jvm arg is fine for me.

                  But it should definitly be a feature request for Eclipse.