Skip to content

Commit

Permalink
test: add basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed May 12, 2024
1 parent 2307dde commit 930dda6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/r-dependent-packages/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Package: foo
Version: 0.0.0.9000
Suggests:
cli
rlang
13 changes: 13 additions & 0 deletions test/r-dependent-packages/r-ver-default.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -e

# Optional: Import test library bundled with the devcontainer CLI
source dev-container-features-test-lib

# Feature-specific tests
check "R cli package" R -q -e 'names(installed.packages()[, 3])' | grep cli
check "R rlang package" R -q -e 'names(installed.packages()[, 3])' | grep rlang

# Report result
reportResults
8 changes: 8 additions & 0 deletions test/r-dependent-packages/scenarios.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"r-ver-default": {
"image": "rocker/r-ver:4",
"features": {
"r-dependent-packages": {}
}
}
}

0 comments on commit 930dda6

Please sign in to comment.