zopencommunity / perlport

Perl programming language
Apache License 2.0
6 stars 3 forks source link

Add assertion testing to shell scripts in perlport #34

Open MikeFultonDev opened 2 years ago

MikeFultonDev commented 2 years ago

From analysis of this open source project, it is SUGGESTED that the project use a configuration for at least some dynamic analysis (such as testing or fuzzing) which enables many assertions. In many cases these assertions should not be enabled in production builds. [dynamic_analysis_enable_assertions] Hide details This criterion does not suggest enabling assertions during production; that is entirely up to the project and its users to decide. This criterion's focus is instead to improve fault detection during dynamic analysis before deployment. Enabling assertions in production use is completely different from enabling assertions during dynamic analysis (such as testing). In some cases enabling assertions in production use is extremely unwise (especially in high-integrity components). There are many arguments against enabling assertions in production, e.g., libraries should not crash callers, their presence may cause rejection by app stores, and/or activating an assertion in production may expose private data such as private keys. Beware that in many Linux distributions NDEBUG is not defined, so C/C++ assert() will by default be enabled for production in those environments. It may be important to use a different assertion mechanism or defining NDEBUG for production in those environments.

MikeFultonDev commented 1 year ago

@IgorTodorovskiIBM i believe this is still an 'open' idea?