Kuan-Liu-Lab / causens

An R package for causal sensitivity analysis methods
https://kuan-liu-lab.github.io/causens/
MIT License
1 stars 0 forks source link

Show that GitHub Actions can detect a failed test #17

Closed larryshamalama closed 10 months ago

larryshamalama commented 10 months ago

This PR has only illustrative purposes. Do not merge

I added a unit test that fails on purpose. Let's see if GitHub Actions catches it.

test_that("Test temporary failed test to ensure that GitHub Actions can detect this", {
  expect_false(is.function(simulate_data))
})
larryshamalama commented 10 months ago

Line 2920 to 2927 highlights that

══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_temp_fail.R:5:3'): Test temporary failed test to ensure that GitHub Actions can detect this ──
is.function(simulate_data) is not FALSE

`actual`:   TRUE 
`expected`: FALSE

[ FAIL 1 | WARN 0 | SKIP 0 | PASS 3 ]

https://github.com/Kuan-Liu-Lab/causens/actions/runs/6853033206/job/18632925715?pr=17