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:
Andrzej Cichocki 2017-04-06 15:37:18 +01:00 committed by GitHub
parent f7dd2733f2
commit 8dbd0d2e25

View File

@ -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 lets assume the cash resources are using the For the Cash transaction lets 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