@@ -42,57 +42,57 @@ suite('Test Go Test Args', () => {
4242
4343 test ( 'default config' , ( ) => {
4444 runTest ( {
45- expectedArgs : 'test -timeout 30s ./...' ,
46- expectedOutArgs : 'test -timeout 30s ./...'
45+ expectedArgs : 'test ./... -timeout 30s ' ,
46+ expectedOutArgs : 'test ./... -timeout 30s '
4747 } ) ;
4848 } ) ;
4949 test ( 'user flag [-v] enables -json flag' , ( ) => {
5050 runTest ( {
51- expectedArgs : 'test -timeout 30s -json ./... -v' ,
52- expectedOutArgs : 'test -timeout 30s ./... -v' ,
51+ expectedArgs : 'test ./... -timeout 30s -json -v' ,
52+ expectedOutArgs : 'test ./... -timeout 30s -json -v' ,
5353 flags : [ '-v' ]
5454 } ) ;
5555 } ) ;
5656 test ( 'user flag [-json -v] prevents -json flag addition' , ( ) => {
5757 runTest ( {
58- expectedArgs : 'test -timeout 30s ./... -json -v' ,
59- expectedOutArgs : 'test -timeout 30s ./... -json -v' ,
58+ expectedArgs : 'test ./... -timeout 30s -json -v' ,
59+ expectedOutArgs : 'test ./... -timeout 30s -json -v' ,
6060 flags : [ '-json' , '-v' ]
6161 } ) ;
6262 } ) ;
6363 test ( 'user flag [-args] does not crash' , ( ) => {
6464 runTest ( {
65- expectedArgs : 'test -timeout 30s ./... -args' ,
66- expectedOutArgs : 'test -timeout 30s ./... -args' ,
65+ expectedArgs : 'test ./... -timeout 30s -args' ,
66+ expectedOutArgs : 'test ./... -timeout 30s -args' ,
6767 flags : [ '-args' ]
6868 } ) ;
6969 } ) ;
7070 test ( 'user flag [-args -v] does not enable -json flag' , ( ) => {
7171 runTest ( {
72- expectedArgs : 'test -timeout 30s ./... -args -v' ,
73- expectedOutArgs : 'test -timeout 30s ./... -args -v' ,
72+ expectedArgs : 'test ./... -timeout 30s -args -v' ,
73+ expectedOutArgs : 'test ./... -timeout 30s -args -v' ,
7474 flags : [ '-args' , '-v' ]
7575 } ) ;
7676 } ) ;
7777 test ( 'specifying functions adds -run flags' , ( ) => {
7878 runTest ( {
79- expectedArgs : 'test -timeout 30s -run ^(TestA|TestB)$ ./... ' ,
80- expectedOutArgs : 'test -timeout 30s -run ^(TestA|TestB)$ ./... ' ,
79+ expectedArgs : 'test ./... -timeout 30s -run ^(TestA|TestB)$' ,
80+ expectedOutArgs : 'test ./... -timeout 30s -run ^(TestA|TestB)$' ,
8181 functions : [ 'TestA' , 'TestB' ]
8282 } ) ;
8383 } ) ;
8484 test ( 'functions & benchmark adds -bench flags and skips timeout' , ( ) => {
8585 runTest ( {
86- expectedArgs : 'test -benchmem -run=^$ -bench ^(TestA|TestB)$ ./... ' ,
87- expectedOutArgs : 'test -benchmem -run=^$ -bench ^(TestA|TestB)$ ./... ' ,
86+ expectedArgs : 'test ./... -benchmem -run=^$ -bench ^(TestA|TestB)$' ,
87+ expectedOutArgs : 'test ./... -benchmem -run=^$ -bench ^(TestA|TestB)$' ,
8888 functions : [ 'TestA' , 'TestB' ] ,
8989 isBenchmark : true
9090 } ) ;
9191 } ) ;
9292 test ( 'user -run flag is ignored when functions are provided' , ( ) => {
9393 runTest ( {
94- expectedArgs : 'test -timeout 30s -run ^(TestA|TestB)$ ./... ' ,
95- expectedOutArgs : 'test -timeout 30s -run ^(TestA|TestB)$ ./... ' ,
94+ expectedArgs : 'test ./... -timeout 30s -run ^(TestA|TestB)$' ,
95+ expectedOutArgs : 'test ./... -timeout 30s -run ^(TestA|TestB)$' ,
9696 functions : [ 'TestA' , 'TestB' ] ,
9797 flags : [ '-run' , 'TestC' ]
9898 } ) ;
0 commit comments