Skip to content

Capturing agent logs during integration tests #723

Answered by BrianJKoopman
jlashner asked this question in Q&A
Discussion options

You must be logged in to vote

Running locally it's possible to direct the agent logs to a file, then view that file. In the tests add args=['--log-dir', './logs/'] to the agent runner fixture creation. For example:

run_agent = create_agent_runner_fixture(
    '../socs/agents/agent/agent.py', 'agent_name', args=['--log-dir', './logs/'])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jlashner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants