SubPointSolutions / spmeta2

SharePoint artifact provision for .NET platform. Supports SharePoint Online, SharePoint 2019, 2016 and 2013 via CSOM/SSOM.
http://subpointsolutions.com/spmeta2
133 stars 56 forks source link

Testing - Optimize regression testing performance #830

Open SubPointSupport opened 8 years ago

SubPointSupport commented 8 years ago

Currently, the full regression testing takes a lot of time to complete.

Also, O365 can easily hit daily CSOM query limits. In that case, parallel execution and multiple site collection are to be considered.

Initially, NCrunch should be used to spread regression testing over 8-12 SharePoint farms. Automated Hyper-V, Vagrant + VirtualBox, Azure/AWS based environments are to be used. In addition, some optimizations in regression tests can be introduced (better CSOM queries, reducing isolation to limit the amount of the new webs created).

NCrunch usage grid with 6-8-12 SharePoint 2013 farms reduces the total regression testing times to 20-35 minutes. That's 6-8-10 times faster that regular sequential test execution on a single farm. Same works well for O365 testing with randomized site collections and 4-6 grid nodes for NCrunch.

SubPointSupport commented 7 years ago

Related to Testing - Implement "Regression.Performance" test coverage #232