mirror of
https://github.com/corda/corda.git
synced 2025-06-01 15:10:54 +00:00
Improve Quasar agent config instructions for unit testing (#512)
Procedure to get IntelliJ to automatically add quasar agent to all new unit test configs.
This commit is contained in:
parent
f7dd2733f2
commit
8dbd0d2e25
@ -100,11 +100,10 @@ reject each other's trade proposals which is implemented in
|
|||||||
examples using the IntelliJ IDE one can run/step the respective unit
|
examples using the IntelliJ IDE one can run/step the respective unit
|
||||||
tests in ``FxTransactionBuildTutorialTest.kt`` and
|
tests in ``FxTransactionBuildTutorialTest.kt`` and
|
||||||
``WorkflowTransactionBuildTutorialTest.kt``, which drive the flows as
|
``WorkflowTransactionBuildTutorialTest.kt``, which drive the flows as
|
||||||
part of a simulated in-memory network of nodes. When creating the
|
part of a simulated in-memory network of nodes. Before creating the IntelliJ
|
||||||
IntelliJ run configuration for these unit test set the workspace
|
run configurations for these unit tests, go to Run -> Edit Configurations ->
|
||||||
points to the root ``corda`` folder and add
|
Defaults -> JUnit and add ``-javaagent:$PROJECT_DIR$/lib/quasar.jar`` to the
|
||||||
``-javaagent:lib/quasar.jar`` to the VM options, so that the ``Quasar``
|
VM options, so that the ``Quasar`` instrumentation is correctly configured.
|
||||||
instrumentation is correctly configured.
|
|
||||||
|
|
||||||
For the Cash transaction let’s assume the cash resources are using the
|
For the Cash transaction let’s assume the cash resources are using the
|
||||||
standard ``CashState`` in the ``:financial`` Gradle module. The Cash
|
standard ``CashState`` in the ``:financial`` Gradle module. The Cash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user