Skip to content

Chromote testing documentation

siddhesh195 edited this page Jun 13, 2024 · 8 revisions

Operating System used for testing

  • Mac OS 14.4.1

Environment used

  • RStudio 2024.04.0+735

Packages used

  • Chromote 0.2.0

Installation

  • First you need to open RStudio and then install chromote package. It is installed by the line:
install.packages("chromote")

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("chromote"). 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
Clone this wiki locally