If it uses a variable in the test name, it can't run the test directly

Answered

I sometimes want to run directly even if a variable is used in the test name.

I supplement the test name with something like "tt.name" so that I can see a list of execution results.

Are my means not good?

2 comments
Comment actions Permalink

Hello,

In the future we will add the ability to run subtests, please go and vote for GO-4811 to stay updated.

Also, an icon for running tests will appear near `t.Run` when the value of the variable can be calculated (as in your code).

Should you have any questions, please feel free to let me know.

0
Comment actions Permalink

Thank you. I voted for it.

1

Please sign in to leave a comment.