mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
A decentralized bitcoin exchange network
bf584c218f
This change reorganizes the ':apitest' subproject to conform to a typical gradle project, where all JUnit test cases are located in the subproject's test sources folder. This makes running tests from an IDE or gradle command line interface work as expected. It will also help keep Travis CI configuration simple. To avoid interfering in normal builds, the gradle ':apitest test' task is disable by default; API tests will only run when a '-Dforce-true' system property is passed to gradle. To run API tests, run a normal build and install dao-setup files: ./gradlew clean build :apitest:installDaoSetup Then run the tests: ./gradlew :apitest:test -Dforce=true Try to avoid adding the '-Dforce=true' property to any other gradle tasks, because this enables the ':apitest test' task, and would kick off API tests before a normal build completed. The build.gradle file was modified to support this code reorg, and the 'org.junit.jupiter' dependendency was upgraded to v5.6.2 -- only in the ':apitest:test' dependency definiitions, not anywhere else in the bisq dependency definitions. The upgrade is necessary for running ordered tests. Since the scaffolding may be set up from either test cases (under the test src folder), or a class under the main src folder, some changes were made to ensure configuration paths are correct for either use case. For example, when the 'bisq-apitest' script is run from the root project directory, the current working directory is the root project directory. When gradle or an IDE is used to run @Test cases, the current working directory is :apitest subproject directory. The main source's ApiTestMain class has been stripped down, and exists only to keep the gradle build happy -- it needs a 'mainClassName' property. But this main driver does have uses. See the class comments. The other changes in this commit were made to fix style and syntax problems. |
||
---|---|---|
.github | ||
.idea | ||
apitest | ||
assets/src | ||
cli | ||
common/src | ||
core | ||
daemon/src/main | ||
desktop | ||
docs | ||
gradle | ||
monitor | ||
p2p/src | ||
pricenode | ||
proto/src/main/proto | ||
relay | ||
scripts | ||
seednode | ||
statsnode/src/main | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
build.gradle | ||
CODEOWNERS | ||
CONTRIBUTING.md | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
LICENSE | ||
Makefile | ||
pull_request_template.md | ||
README.md | ||
settings.gradle |
Bisq
What is Bisq?
Bisq is a safe, private and decentralized way to exchange bitcoin for national currencies and other digital assets. Bisq uses peer-to-peer networking and multi-signature escrow to facilitate trading without a third party. Bisq is non-custodial and incorporates a human arbitration system to resolve disputes.
To learn more, see the doc and video at https://bisq.network/intro.
Get started using Bisq
Follow the step-by-step instructions at https://bisq.network/get-started.
Contribute to Bisq
See CONTRIBUTING.md and the developer docs.