Embedded Systems Solutions logo  
 
 
 
     
     
  Products  
     
   
     
 
 
     
  Events & Promos  
 
     
 
Axivion Logo
 
 
     
  Test the tests: test cases for programming specifications  
     
  Testing Programming Guides Banner  
     
 

The implementation of an automatic coding guidelines check produces code; in the case of the Axivion Suite mostly Python code that makes use of Axivion Suite’s API, to flag certain places in code as an “issue” and to report it accordingly.

As you should always test your code – you also have to test the programming guide. So we have to answer the question:

What best practises should be followed when testing programming guides?

 
     
 

Strategy

 
     
 
  • For each and every programming rule, create a “unit” test including positive and negative test cases. In our case this means we need code that violates the rules as well as code that follows the rules.

    Creating code beyond the unit tests that follows all rules at the same time is very difficult. Therefore, the following is more efficient:
  • Create an overall test based on a stable branch or a frozen branch of a project to assess the impact of changes to the coding rules in the delta views of Axivion Suite. (Here we change the rules rather than the code.) In the case that there are no violations of certain rules, one can create additional violations by “error seeding”.
 
     
 
Learn More Scroll Top