Ticket T741715
Visible to All Users

19.1.3 + UnitTests + Performance Optimizations

created 6 years ago

Hi Guys,

i am getting some weired exceptions when running our unittests on our build servers. when i disable all 19.1.3 optimization for our testapplication they are running fine. is this recommended for running unittests? i did now the following and unittests are running fine now:

public class TestApplication : XafApplication
    {
        public TestApplication()
        {
            this.ShowViewStrategy = new TestShowViewStrategy(this);
            DevExpress.ExpressApp.Model.ModelXmlReader.UseXmlReader = false;
            DevExpress.ExpressApp.Model.Core.ModelNode.UseDefaultValuesCache = false;
            DevExpress.ExpressApp.Core.ControllersManager.UseParallelBatchControllerCreation = false;
            DevExpress.ExpressApp.ApplicationModulesManager.UseParallelTypesCollector = false;
            DevExpress.ExpressApp.ApplicationModulesManager.UseStaticCache = false;
            DevExpress.Persistent.Base.ReflectionHelper.UseAssemblyResolutionCache = false;
        }

Show previous comments (18)
DevExpress Support Team 5 years ago

    You are welcome, Martin! If you have interesting cases for unit tests, don't hesitate to share your ideas so that we can continue our series!

    M M
    Martin Praxmarer - DevExpress MVP 5 years ago

      Hi Gusha,

      one thing which comes in my mind as for interesting cases would be how to correctly test business classes logic with XPO. would be great to see your recommendations. setup xaftypesinfo / objectspaceprovider? (we use inmemory currently), securitysystem and so on…

      DevExpress Support Team 5 years ago

        Hello Martin,

        I've created a separate ticket on your behalf (T863708: How to unit test business classes' logic with XPO).

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.