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


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?

Comment actions Permalink


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.

Comment actions Permalink

Thank you. I voted for it.


Please sign in to leave a comment.