Based off of MIT Distributed Systems Lab 2: https://pdos.csail.mit.edu/6.824/labs/lab-raft.html
In internal/raft
,
go test
If you have internal/raft/dslogs
in your path,
VERBOSE=1 go test | dslogs -c <num_columns>
To run a specific test with logs,
VERBOSE=1 go test -run <test_name> | dslogs -c <num_columns>