cynkra/fledge

failures with dev usethis & testthat

maelle opened this issue · 3 comments

I am really surprised at the deletions... trying with dev testthat soon.

==> devtools::test()

ℹ Testing fledge
Starting 2 test processes| F W S  OK | Context|         1 | commits [0.5s]                           
✖ | 1       0 | demo [21.8s]                             
─────────────────────────────────────────────────────────
Failure (test-demo.R:2:3): demo vignette works
Snapshot of `path` to 'demo/demo.md' has changed
Run `testthat::snapshot_review('demo/')` to review changes
Backtrace:1. └─fledge:::test_galley("demo") at test-demo.R:2:2
 2.   └─testthat::expect_snapshot_file(path, name = md_name, compare = testthat::compare_file_text) at tests/testthat/helper-vignettes.R:108:2
─────────────────────────────────────────────────────────
✖ | 2       2 | finalize-version [34.9s]                 
─────────────────────────────────────────────────────────
Failure (test-finalize-version.R:18:3): finalize_version(push = FALSE)
Snapshot of "NEWS.md" to 'finalize-version/NEWS-push-false.md' has changed
Run `testthat::snapshot_review('finalize-version/')` to review changes

Failure (test-finalize-version.R:43:3): finalize_version(push = TRUE)
Snapshot of "NEWS.md" to 'finalize-version/NEWS-push-true.md' has changed
Run `testthat::snapshot_review('finalize-version/')` to review changes
─────────────────────────────────────────────────────────
✔ |        10 | fledgling [0.7s]                         
✖ | 1      10 | parse-news-items [17.8s]                 
─────────────────────────────────────────────────────────
Failure (test-parse-news-items.R:32:3): Will use commits
Snapshot of "NEWS-merge.md" to 'parse-news-items/NEWS-merge.md' has changed
Run `testthat::snapshot_review('parse-news-items/')` to review changes
─────────────────────────────────────────────────────────
✖ | 3      19 | bump_version [84.5s]                     
─────────────────────────────────────────────────────────
Failure (test-bump_version.R:15:3): bump_version() works -- dev
Snapshot of "NEWS.md" to 'bump_version/NEWS.md' has changed
Run `testthat::snapshot_review('bump_version/')` to review changes

Failure (test-bump_version.R:25:3): bump_version() works -- dev
Snapshot of "NEWS.md" to 'bump_version/NEWS2.md' has changed
Run `testthat::snapshot_review('bump_version/')` to review changes

Failure (test-bump_version.R:41:3): bump_version() works -- not dev
Snapshot of "NEWS.md" to 'bump_version/NEWS-nondev.md' has changed
Run `testthat::snapshot_review('bump_version/')` to review changes
─────────────────────────────────────────────────────────
✔ |         4 | tag_version [17.4s]                      
✖ | 1       1 | unbump_version [20.4s]                   
─────────────────────────────────────────────────────────
Failure (test-unbump_version.R:32:3): unbump_version() works
Snapshot of `file.path(repo, "NEWS.md")` to 'unbump_version/NEWS.md' has changed
Run `testthat::snapshot_review('unbump_version/')` to review changes
─────────────────────────────────────────────────────────
✔ |         1 | with_demo_project|        11 | update-news [20.6s]                      
                                                         
══ Results ══════════════════════════════════════════════
Duration: 115.6 s

[ FAIL 8 | WARN 0 | SKIP 0 | PASS 59 ]
Deleting unused snapshots:bump_version/NEWS-nondev.mdbump_version/NEWS-nondev.new.mdbump_version/NEWS.mdbump_version/NEWS.new.mdbump_version/NEWS2.mdbump_version/NEWS2.new.mdfinalize-version/NEWS-push-false.mdfinalize-version/NEWS-push-false.new.mdfinalize-version/NEWS-push-true.mdfinalize-version/NEWS-push-true.new.mdparse-news-items/NEWS-merge.mdparse-news-items/NEWS-merge.new.mdparse-news-items/NEWS.mdunbump_version/NEWS.mdunbump_version/NEWS.new.mdupdate-news/newchangelog.mdupdate-news/samedev-base.mdupdate-news/samedev-updated.mdupdate-news/samedev.md

the failure with dev usethis is due to something like r-lib/usethis#1830 (but not that PR itself since it's in the CRAN version)