From 8dbd0d2e250e07764f841a00adb4dc83829d93bf Mon Sep 17 00:00:00 2001 From: Andrzej Cichocki Date: Thu, 6 Apr 2017 15:37:18 +0100 Subject: [PATCH] Improve Quasar agent config instructions for unit testing (#512) Procedure to get IntelliJ to automatically add quasar agent to all new unit test configs. --- docs/source/tutorial-building-transactions.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/source/tutorial-building-transactions.rst b/docs/source/tutorial-building-transactions.rst index e9a6dc08aa..73808010bc 100644 --- a/docs/source/tutorial-building-transactions.rst +++ b/docs/source/tutorial-building-transactions.rst @@ -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 tests in ``FxTransactionBuildTutorialTest.kt`` and ``WorkflowTransactionBuildTutorialTest.kt``, which drive the flows as -part of a simulated in-memory network of nodes. When creating the -IntelliJ run configuration for these unit test set the workspace -points to the root ``corda`` folder and add -``-javaagent:lib/quasar.jar`` to the VM options, so that the ``Quasar`` -instrumentation is correctly configured. +part of a simulated in-memory network of nodes. Before creating the IntelliJ +run configurations for these unit tests, go to Run -> Edit Configurations -> +Defaults -> JUnit and add ``-javaagent:$PROJECT_DIR$/lib/quasar.jar`` to the +VM options, so that the ``Quasar`` instrumentation is correctly configured. For the Cash transaction let’s assume the cash resources are using the standard ``CashState`` in the ``:financial`` Gradle module. The Cash