Most Powerful Open Source ERP

ERP5 Unit Tests

Introduction

ERP5 is used for many critical applications. Our customers relies on it to run their every day business, and they can not accept having regularly bugs coming again and again. Every software issue could have important consequences, especially if you think about banking, areospace applications and many others. Therefore Nexedi consider the quality as one of it's top priorities and decided to use automated testing since the early age of ERP5.

Unit / Functional Test

While the code of ERP5 is evolving, more and more unit and functional tests are added. When issues are reported, we write the test and fix the problem. Like this we make sure that the same issue is not going to happens again. Also, when new features are done, tests are added to make sure we will provide well working experience. We have both unit test and functional tests. Unit test are used to test isolated software component, while functional tests are used to verify scenarios more closed to user experience.

Development policy

We tried for years to keep the quantity of failures as low as possible. While the size of ERP5 was growing, it started to be more and more time consuming to track regressions. In particular, it's quite common that a change in some part of the code generate a regression in another place that seems unrelated without detailed analysis. And then it happened that we had several errors, and it was difficult to see new ones. Therefore, after our switch to git, we introduced the rule "contributions must not introduce ANY regression". So we started by fixing test failures, we checked all random issues, and we started to reject any code introducing failures. The idea is simply to check all unit test before contributing changes to the central place. This can easily be done thanks to our Testing Infrastructure. Thanks to this rule, about any revision of ERP5 could be considered as stable. This is really a great success. With a quantity of test growing, we have nearly 0 errors/failures all the time.

Testing Infracture

We are using what we call "ERP5 Test Nodes". It's some processes installed on many different machines thanks to SlapOS cloud tools. We define several list of tests to run, and ERP5 test nodes will look regularly to several git repositories to detect new commit, then they launch software constructions and finally tests are automatically run. Theses days we are using about 60 CPU cores to run tests for our various projects and for different versions.

ERP5 Test Results

You can find below the result of automatic test of ERP5 code. Hopefully you are able to see many test results at 0 errors/failures for several thousands of tests. Since we are humans and not perfect, It might happens that a change introduce a regression. But in this case, you could be sure that we will quickly look and solve it.

1 - 15 of sample of 1000 records
Revision Launch Date Title All Tests Failures Errors Skips Result Status
slapos.cookbook=11479-6c4e40511bfcbee1e9621e452e0ac69b2946a5c0,erp5=50186-ea32ff153d7c20b3a5df697a3f7d55df68a7bed4 2019/06/18 15:25:41.718963 UTC ERP5-MASTER 6038 10 0 200 FAIL Completed
slapos.cookbook=11478-d431f234ec2250c2a62ffc18ddd54a4712fbf9bf,erp5=50186-ea32ff153d7c20b3a5df697a3f7d55df68a7bed4 2019/06/18 07:09:28.406292 UTC ERP5-MASTER 6038 11 0 200 FAIL Completed
slapos.cookbook=11478-d431f234ec2250c2a62ffc18ddd54a4712fbf9bf,erp5=50185-e1d23b8193a36661b0666f0f2a11f40aaded77af 2019/06/17 22:26:18.942759 UTC ERP5-MASTER 6038 10 0 200 FAIL Completed
slapos.cookbook=11477-3e69b64beef1415494476b14f272277cffc22070,erp5=50185-e1d23b8193a36661b0666f0f2a11f40aaded77af 2019/06/17 16:50:49.920132 UTC ERP5-MASTER 6038 10 0 200 FAIL Completed
slapos.cookbook=11476-622604360a1eececc30dc06439be64fac8dca67a,erp5=50185-e1d23b8193a36661b0666f0f2a11f40aaded77af 2019/06/17 12:29:16.298591 UTC ERP5-MASTER 6038 10 0 200 FAIL Completed
slapos.cookbook=11475-71ca6d4317678eafa099ed782835b080a8306501,erp5=50185-e1d23b8193a36661b0666f0f2a11f40aaded77af 2019/06/17 08:45:5.043534 UTC ERP5-MASTER 6038 10 0 200 FAIL Completed
slapos.cookbook=11475-71ca6d4317678eafa099ed782835b080a8306501,erp5=50171-6c2a248f59232e2140dd1e1a0d0b1484b1b157f5 2019/06/17 06:34:55.414139 UTC ERP5-MASTER 6035 14 0 200 FAIL Completed
slapos.cookbook=11474-05b1d21551a5e51087b2a9cf8560f799d667e9a7,erp5=50171-6c2a248f59232e2140dd1e1a0d0b1484b1b157f5 2019/06/14 12:16:56.990138 UTC ERP5-MASTER 6035 11 0 200 FAIL Completed
slapos.cookbook=11473-c9279858ee2a0da39001c32ec6011a9fd34d346f,erp5=50171-6c2a248f59232e2140dd1e1a0d0b1484b1b157f5 2019/06/13 15:26:0.880265 UTC ERP5-MASTER 6035 10 1 200 FAIL Completed
slapos.cookbook=11473-c9279858ee2a0da39001c32ec6011a9fd34d346f,erp5=50170-e598da95fce7019c2acad0766abc32eff252946e 2019/06/12 11:21:53.172637 UTC ERP5-MASTER 5670 1 9 196 FAIL Completed
slapos.cookbook=11472-15b371424b13c24cd0aaaa5e86da1d864ced17c6,erp5=50170-e598da95fce7019c2acad0766abc32eff252946e 2019/06/12 09:55:41.029057 UTC ERP5-MASTER 5992 11 4 200 FAIL Completed
slapos.cookbook=11468-3a21eeed8218979ab03b700107fa3707e6b413e7,erp5=50170-e598da95fce7019c2acad0766abc32eff252946e 2019/06/12 06:51:51.113400 UTC ERP5-MASTER 5819 10 7 163 FAIL Completed
slapos.cookbook=11468-3a21eeed8218979ab03b700107fa3707e6b413e7,erp5=50169-6684585583bf35ea6910a328b55705da99d81e9f 2019/06/12 05:11:56.412426 UTC ERP5-MASTER 6032 10 8 200 FAIL Completed
slapos.cookbook=11468-3a21eeed8218979ab03b700107fa3707e6b413e7,erp5=50168-7c0f804d8b02e5365596ceddd1b5fc05223fa806 2019/06/11 11:41:12.953565 UTC ERP5-MASTER 5685 18 10 195 FAIL Completed
slapos.cookbook=11468-3a21eeed8218979ab03b700107fa3707e6b413e7,erp5=50166-244cdd5e78be7aa11e2c32070e7ed31b66b53473 2019/06/10 14:42:57.859694 UTC ERP5-MASTER 6033 10 0 200 FAIL Completed