Skip to content

Commit 9e4d633

Browse files
committed
No need for scenario name in test name
1 parent 4d206ef commit 9e4d633

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/execute/tsctestrunner_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type tscInput struct {
2828

2929
func (test *tscInput) run(t *testing.T, scenario string) {
3030
t.Helper()
31-
t.Run(test.getTestName(scenario), func(t *testing.T) {
31+
t.Run(test.getTestName(), func(t *testing.T) {
3232
t.Parallel()
3333
t.Run("tsc baseline", func(t *testing.T) {
3434
t.Parallel()
@@ -83,8 +83,8 @@ func (test *tscInput) getTestNamePrefix() string {
8383
return commandName + w
8484
}
8585

86-
func (test *tscInput) getTestName(scenario string) string {
87-
return test.getTestNamePrefix() + " " + scenario + ":: " + test.subScenario + " " + strings.Join(test.commandLineArgs, " ")
86+
func (test *tscInput) getTestName() string {
87+
return test.subScenario + " " + strings.Join(test.commandLineArgs, " ")
8888
}
8989

9090
func (test *tscInput) getBaselineName(scenario string, suffix string) (baseline.Options, string) {
@@ -109,7 +109,7 @@ func (test *tscInput) startBaseline() *strings.Builder {
109109

110110
func (test *tscInput) verifyCommandLineParsing(t *testing.T, scenario string) {
111111
t.Helper()
112-
t.Run(test.getTestName(scenario), func(t *testing.T) {
112+
t.Run(test.getTestName(), func(t *testing.T) {
113113
t.Parallel()
114114
t.Run("baseline for the tsc compiles", func(t *testing.T) {
115115
t.Parallel()

0 commit comments

Comments
 (0)