3 Replies Latest reply on Jan 4, 2012 5:40 PM by rkilcoyne

    Table truncate after @UsingDataSet

    rkilcoyne

      Is there any way to specify in the arquillian.xml config that tables should not be truncated after inserting data as specified in any @UsingDataSet annotations?

       

      Thanks,

      Rick

        • 1. Re: Table truncate after @UsingDataSet
          rkilcoyne

          In case you're wondering why I'm doing this, here's the explanation:

           

          Our tests are run against a production snapshot of our database. This ensures that our tests are executing against the latest schema and any changes that may have made it into production. I'm not convinced this is the best way to go, but for now it's the only way to ensure existing data/schema doesn't break any of our assumptions.

           

          Rick

          • 2. Re: Table truncate after @UsingDataSet
            bmajsak

            Hi Rick,

             

            currently it's unfortunately not possible. Database content is cleaned after each test execution. However I'm aware that it should be more flexible and you should consider it improved with Alpha4

             

            Thanks a lot for your feedback!

             

            Cheers,

            Bartosz

            1 of 1 people found this helpful
            • 3. Re: Table truncate after @UsingDataSet
              rkilcoyne

              Thanks Bartosz -- pleaes ignore my cross-post on my other discussion ;-)

               

              If it bothers me enough, I'll add a config option and submit a pull request.

               

              Thanks!

              Rick