Skip to content

Chromote testing documentation

Siddhesh Deodhar edited this page Jul 3, 2024 · 8 revisions

Operating System used for testing

  • Mac OS 14.4.1

Software used for testing

  • RStudio 2024.04.0+735

  • Google Chrome Version 126.0.6478.61 (Official Build) (arm64)

Packages used

  • Chromote 0.2.0

Installation

  • First you need to install RStudio on any operating system which supports it. You also need Google Chrome installed on your system.

  • Then you need to open RStudio and then install chromote package. It is installed by the line:

install.packages("chromote")

You also need to install animint2@chromote-testing by using the command

remotes::install_github('animint/animint2@chromote-testing')

Setup

  • Navigate to the directory animint2/tests/testthat and then run following-
library("testthat")
library("animint2")
library("RSelenium");library("XML")
source("helper-functions.R")
source("helper-HTML.R")
source("helper-plot-data.r")
  • Now, run tests_init(). It'll initialize chromote.

Testing

Now you can start testing!

# to run all tests
tests_run() 
# to run specific test
tests_run(filter="axis-angle-rotate")
# to run a all renderer tests
tests_run(filter="renderer")

To see what's being rendered, open window in your browser and use the url 'http://localhost:4848/animint-htmltest/'.

Screenshots

Console Screenshot Web Screenshot