How can I have Garden print the logs of my test ac...
# 🤖|ask-kapa
g
@microscopic-river-74022 How can I have Garden print the logs of my test action as the test runs?
m
Please stand by @glamorous-kangaroo-20427 as I search the knowledge base. I normally take about 15 seconds or so. :wave:
---------------------- You can have Garden print the logs of your test action as the test runs by using the
-i
option when running a specific test. This option is useful for running a single test and streaming the log outputs. Here is how you can do it:
Copy code
bash
garden test my-test -i
In this command, replace
my-test
with the name of your test. This command will run the specified test and attach to it, streaming the log outputs. If you want to retrieve the latest logs for all `Deploy`s or a single
Deploy
, you can use the
garden logs
command:
Copy code
bash
garden logs  # for all Deploys
garden logs my-deploy  # for a single Deploy
Replace
my-deploy
with the name of your Deploy. If you want to stream logs for a
Deploy
action, you can use the
--follow
or
-f
option:
Copy code
bash
garden logs my-deploy --follow  # or -f for short
Again, replace
my-deploy
with the name of your Deploy. You can also view your project graph, stream logs in real time, and run any Garden command from the command palette in the Live page of the Garden dashboard. To access the Live page, run
garden dev
and follow the link to the Live page. For more information, refer to the following documentation: - Running a specific test and attaching () - Retrieving the latest logs for all `Deploy`s or a single
Deploy
() - Live Page () ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
message has been deleted
5 Views