2 Replies Latest reply on Nov 10, 2014 9:37 PM by tom9729

    Testing changes

    tom9729

      I was hoping someone could share what their process looks like when working on Teiid.

       

      I've done some translator development and usually test my changes by hot-deploying the translator to a Teiid server. Now I'm trying to test some changes to the core/engine, which seems to require something a little different. I whipped up a little script to replace all the Teiid module JARs with softlinks to the versions installed in my local Maven repo. My process is to recompile the JARs I've changed and then restart JBoss to apply.

       

      I've made some small changes to a running server using the debugger, but this is limited (e.g., can't add classes). I spent a little time trying to get JRebel to work but the license cost is prohibitive.

       

      Should I focus on testing my changes with unit tests? Do you often test against live servers?

       

      Thanks!

      Tom

        • 1. Re: Testing changes
          rareddy

          Two options

          * You can use EmbeddedServer. Look for FakeServer class and tests that using it for examples.

          * If you want to test with JBoss EAP, the you can write Arquillian test. Look for "IntegrationTestDeployment" for example.

           

          Unit test is best, then use of the EmbeddedServer. If the test is environment specific then I will look into Arquillian tests.

          • 2. Re: Testing changes
            tom9729

            Thanks Ramesh! I will see how far I can get with unit tests. I assume anything I try to get merged will require them anyways. :-)