Skip to main content

Test

Testing SCORE contracts

Drogon has a subcommand for testing your contracts.

Note: as with other drogon commands, you can pass in the additional gradle parameters to the test sub command if you wish.

drogon test -h
_ .-') _ _ .-') .-') _ ,---.
( ( OO) )( \( -O ) ( OO ) )| |
\ .'_ ,------. .-'),-----. ,----. .-'),-----. ,--./ ,--,' | |
,`'--..._)| /`. '( OO' .-. ' ' .-./-') ( OO' .-. '| \ | |\ | |
| | \ '| / | |/ | | | | | |_( O- )/ | | | || \| | )| |
| | ' || |_.' |\_) | |\| | | | .--, \\_) | |\| || . |/ | .'
| | / :| . '.' \ | | | |(| | '. (_/ \ | | | || |\ | `--'
| '--' /| |\ \ `' '-' ' | '--' | `' '-' '| | \ | .--.
`-------' `--' '--' `-----' `------' `-----' `--' `--' '--'
Usage: Drogon test [options]

Run the tests against the Drogon contracts

Options:
-p, --path [string] Path of your Drogon Project (default: "./")
-h, --help display help for command

The output should look like this

drogon test
_ .-') _ _ .-') .-') _ ,---.
( ( OO) )( \( -O ) ( OO ) )| |
\ .'_ ,------. .-'),-----. ,----. .-'),-----. ,--./ ,--,' | |
,`'--..._)| /`. '( OO' .-. ' ' .-./-') ( OO' .-. '| \ | |\ | |
| | \ '| / | |/ | | | | | |_( O- )/ | | | || \| | )| |
| | ' || |_.' |\_) | |\| | | | .--, \\_) | |\| || . |/ | .'
| | / :| . '.' \ | | | |(| | '. (_/ \ | | | || |\ | `--'
| '--' /| |\ \ `' '-' ' | '--' | `' '-' '| | \ | .--.
`-------' `--' '--' `-----' `------' `-----' `--' `--' '--'
โ˜ pending Testing contracts
Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused, use --status for details
> Task :src:compileJava NO-SOURCE
> Task :src:processResources NO-SOURCE
> Task :src:classes UP-TO-DATE
> Task :src:compileTestJava NO-SOURCE
> Task :src:processTestResources NO-SOURCE
> Task :src:testClasses UP-TO-DATE
> Task :src:test NO-SOURCE
> Task :src:hello-world:compileJava UP-TO-DATE
> Task :src:hello-world:processResources NO-SOURCE
> Task :src:hello-world:classes UP-TO-DATE
> Task :src:hello-world:compileTestJava UP-TO-DATE
> Task :src:hello-world:processTestResources NO-SOURCE
> Task :src:hello-world:testClasses UP-TO-DATE
> Task :src:hello-world:test UP-TO-DATE

BUILD SUCCESSFUL in 1m 1s
3 actionable tasks: 3 up-to-date
โœ” success Done