Skip to content

Commit

Permalink
test: skip snapshot tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
elipousson committed Aug 25, 2023
1 parent 3f86bbc commit 28ffdbf
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
45 changes: 45 additions & 0 deletions tests/testthat/_snaps/cursor_docx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# cursor_docx works

Code
cursor_docx(docx, keyword = "Title 1")[["officer_cursor"]]
Output
$nodes_names
[1] "p" "p" "p" "p" "p" "p" "p" "p" "p" "p" "p" "p"
[13] "p" "p" "p" "tbl" "p" "p"
$which
[1] 1
attr(,"class")
[1] "officer_cursor"

---

Code
cursor_docx(docx, id = bmks[[1]])[["officer_cursor"]]
Output
$nodes_names
[1] "p" "p" "p" "p" "p" "p" "p" "p" "p" "p" "p" "p"
[13] "p" "p" "p" "tbl" "p" "p"
$which
[1] 2
attr(,"class")
[1] "officer_cursor"

---

Code
cursor_docx(docx, index = 10)[["officer_cursor"]]
Output
$nodes_names
[1] "p" "p" "p" "p" "p" "p" "p" "p" "p" "p" "p" "p"
[13] "p" "p" "p" "tbl" "p" "p"
$which
[1] 6
attr(,"class")
[1] "officer_cursor"

4 changes: 4 additions & 0 deletions tests/testthat/test-add_to_body.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
test_that("add_to_body works", {
skip_on_ci()

docx_example <- read_docx_ext(
filename = "example.docx",
path = system.file("doc_examples", package = "officer")
Expand Down Expand Up @@ -31,6 +33,8 @@ test_that("add_to_body works", {
})

test_that("add_gt_to_body works", {
skip_on_ci()

docx <- read_docx_ext(
filename = "example.docx",
path = system.file("doc_examples", package = "officer")
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-cursor_docx.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
test_that("cursor_docx works", {
skip_on_ci()

docx <- read_docx_ext(
filename = "example.docx",
path = system.file("doc_examples", package = "officer")
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-dims_docx_ext.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
test_that("dims_docx_ext works", {
skip_on_ci()

docx <- read_docx_ext(
filename = "example.docx",
path = system.file("doc_examples", package = "officer")
Expand Down

0 comments on commit 28ffdbf

Please sign in to comment.