samedi 20 juin 2020

shinytest finds size difference in json; difference in json but not in snapshots; huge tests loading problems

I want to build tests which will be consistent (all snapshots will be of same size and font) across platforms but since they have diff resolution, CI would be a better option to tackle this.

  1. But when I run the test here the json file has this from Mac enter image description here and this from Windows enter image description here The snapshot has a size difference. I have seen this issue here: https://github.com/rstudio/shinytest/issues/300 and a solution here: https://rstudio.github.io/shinytest/articles/ci.html, I still could not get pass it.
  2. Also when the snapshots match correctly, the json does not and nothing is highlighted as seen above the difference is dark red.
  3. The last issue I faced was the loading of difference even after runtest was completed. Does this mean making smaller test for a single tab would make sense. Since one of the big tests I wrote and want to update it still does not show me the difference when I run compare test. Thanks for any help! Please let me know if I need to be more specific. I can share the tests as well. I have gone through many shinytest documentation but still stuck.

Aucun commentaire:

Enregistrer un commentaire