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}}} git clone https://{{gitHost}}/{{{gitUserId}}}/{{{gitRepoId}}}
cd {{{gitRepoId}}} cd {{{gitRepoId}}}
R CMD build . 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 R CMD INSTALL {{{packageName}}}_{{{packageVersion}}}.tar.gz
``` ```

View File

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

View File

@ -27,7 +27,7 @@ install.packages("base64enc")
git clone https://github.com/GIT_USER_ID/GIT_REPO_ID git clone https://github.com/GIT_USER_ID/GIT_REPO_ID
cd GIT_REPO_ID cd GIT_REPO_ID
R CMD build . 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 R CMD INSTALL petstore_1.0.0.tar.gz
``` ```