Korean Unit Testing

Last updated by admin 3 years ago

?? ???(Unit testing)

??? ??(test suite) ??? ????

??? ??? ???? "grails create-test-suite" ??? ????? "%PROJECT_HOME%grails-test" ????? GroovyTestCase? ?? ?? ??? "Tests"? ??? ???? ???? ???.

Groovy? ?? ???(unit test)? ???? ? ??? ??? Groovy ???? ?? ??? ? ?????.
?? ??? ??? ???? ??? ???? ????? ??? ?????:
class BookTests {

def testValid() { def b = new Book(title:"Groovy in Action", author:"Dierk Koenig")

assert b.validate() } }

??? ??? ????? "grails test-app" ??? ?????.

Grails? ?? ?? ???? ?????.