![]() refs DE-777 Change-Id: I4bfa74ec75894eb93660e2e8ef0e1d75ec51d927 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/269865 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com> Reviewed-by: Ryan Norton <rnorton@instructure.com> Product-Review: Ryan Norton <rnorton@instructure.com> QA-Review: Aaron Ogata <aogata@instructure.com> |
||
---|---|---|
.. | ||
test/integration/groovy | ||
vars | ||
.gitignore | ||
README.md | ||
build.gradle.kts |
README.md
End to End testing
End to End testing framework for canvas-lms Jenkinsfiles For more information about the e2e testing framework take a look JenkinsPipelineUnit
Getting Started
First, you need to install JDK 8:
$ brew tap AdoptOpenJDK/openjdk
$ brew cask install adoptopenjdk8
Install gradle
Install gradle:
brew install gradle
Install gradle wrapper
To install gradle wrapper:
$ GRADLE_WRAPPER_DIR="/path/to/install/gradlewrapper/"
$ mkdir -p $GRADLE_WRAPPER_DIR
$ cd $GRADLE_WRAPPER_DIR
$ gradle wrapper
$ echo "export PATH=$GRADLE_WRAPPER_DIR:\$PATH" >> ~/.bashrc
$ source ~/.bashrc
For further information: gradlewrapper
Running Tests
$ cd /path/to/canvas-lms/build/new-jenkins/library
$ gradlew integrationTest
To run a specific file
$ cd /path/to/canvas-lms/build/new-jenkins/library
$ gradlew integrationTest --tests <classname> # where classname is RebaseHelperTest for example
To force a re-run a specific file
$ cd /path/to/canvas-lms/build/new-jenkins/library
$ gradlew integrationTest --tests <classname> --info --rerun-tasks # where classname is RebaseHelperTest for example
Help & Support
If you run into any issues, please don't hesitate to reach out to #devx!