Advice on Unit Test SfChart

HI,

Looking for some advice on how to unit test a SfChart with BUnit to verify that its visual representation is as expected for a set of data. One thought was a bitmap compare of the chart image

Do you do this with your own unit tests for SfChart?




1 Reply

DG Durga Gopalakrishnan Syncfusion Team October 25, 2021 12:37 PM UTC

Hi Michael, 
  
Greetings from Syncfusion. 
  
We have done BUnit testing for chart control using DOM attributes of all chart elements. Since the test sample, displays output in backend, we have compared each DOM value with an already saved DOM value to ensure testing. We don’t use image comparison for testing purpose.  
  
Please let us know if you have any concerns. 
  
Regards,  
Durga G 


Loader.
Up arrow icon