- If the existing tests do not already cover your changes, please add tests.
To build the plugin sources, please follow these steps:
- Clone the code from Git.
- Build the plugin by running the following Gradle command:
./gradlew clean build
To build the code without running the tests, add to the "clean build" command the "-x test" option, for example:
./gradlew clean build -x test -x functionalTest
In order to run tests, you should have an Artifactory instance running.
The tests try to access with default values ('localHost:8081', 'admin', 'password') overriding those values can be done by using environment variables:
export BITESTS_PLATFORM_URL='http://localhost:8081'
export BITESTS_PLATFORM_USERNAME=admin
export BITESTS_PLATFORM_ADMIN_TOKEN=admin-access-token
exeport BITESTS_ARTIFACTORY_LOCAL_REPO='some-local-repo'
exeport BITESTS_ARTIFACTORY_VIRTUAL_REPO='some-virtual-repo'
./gradlew clean check
- The above command run both unit and integration tests.
./gradlew aP -Dorg.gradle.jvmargs=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005
After running the above command, you should start a remote debugging session on port 5005 and wait until the code reaches the break point.