-
Notifications
You must be signed in to change notification settings - Fork 23
Chromote testing documentation
Siddhesh Deodhar edited this page Jul 3, 2024
·
8 revisions
- Mac OS 14.4.1
-
RStudio 2024.04.0+735
-
Google Chrome Version 126.0.6478.61 (Official Build) (arm64)
- Chromote 0.2.0
-
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')
- 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.
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/'.
![Console Screenshot](https://github.com/siddhesh195/GSoC2024/raw/main/images/console.png)
![Web Screenshot](https://github.com/siddhesh195/GSoC2024/raw/main/images/web.png)
If you're facing any problems, feel free to let us know by creating issues. (please do not edit this footer)