skip test for enum model, update readme (#6936)

This commit is contained in:
William Cheng 2020-07-15 19:00:14 +08:00 committed by GitHub
parent cef1bec466
commit 02a8207b91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View File

@ -35,7 +35,7 @@ install.packages("base64enc")
git clone https://{{gitHost}}/{{{gitUserId}}}/{{{gitRepoId}}}
cd {{{gitRepoId}}}
R CMD build .
R CMD check {{{packageName}}}_{{{packageVersion}}}.tar.gz
R CMD check {{{packageName}}}_{{{packageVersion}}}.tar.gz --no-manual
R CMD INSTALL {{{packageName}}}_{{{packageVersion}}}.tar.gz
```

View File

@ -2,12 +2,15 @@
# Please update as you see appropriate
context("Test {{{classname}}}")
{{#models}}
{{#model}}
{{^isEnum}}
{{#vars}}
{{#-first}}
model.instance <- {{{classname}}}$new()
{{#models}}
{{#model}}
{{#vars}}
{{/-first}}
test_that("{{{name}}}", {
# tests for the property `{{{name}}}` ({{dataType}})
{{#description}}
@ -19,5 +22,6 @@ test_that("{{{name}}}", {
})
{{/vars}}
{{/isEnum}}
{{/model}}
{{/models}}

View File

@ -27,7 +27,7 @@ install.packages("base64enc")
git clone https://github.com/GIT_USER_ID/GIT_REPO_ID
cd GIT_REPO_ID
R CMD build .
R CMD check petstore_1.0.0.tar.gz
R CMD check petstore_1.0.0.tar.gz --no-manual
R CMD INSTALL petstore_1.0.0.tar.gz
```