Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added test case
  • Loading branch information
bdwyer2 committed Dec 12, 2016
commit cee39446899387fa40c3e853cd53d3c0d043c4bd
8 changes: 8 additions & 0 deletions R/pkg/inst/tests/testthat/test_sparkR.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,11 @@ test_that("sparkCheckInstall", {
deployMode <- "client"
expect_error(sparkCheckInstall(sparkHome, master, deployMode))
})

test_that("sparkR.session", {
# nothing should be written outside the tempdir() without explicit user premission
inital_working_directory_files <- list.files()
sparkR.session()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might want to explicitly run some SQL query here and then call sparkR.stop() and then check the files

expect_equal(inital_working_directory_files, list.files())

})