@@ -21,7 +21,7 @@ gulp.task('ext:lint', () => {
21
21
return gulp . src ( [
22
22
config . paths . project . root + '/src/**/*.ts' ,
23
23
'!' + config . paths . project . root + '/src/views/htmlcontent/**/*' ,
24
- config . paths . project . root + '/test/**/*.ts'
24
+ config . paths . project . root + '/test/unit/ **/*.ts'
25
25
] )
26
26
. pipe ( gulpESLintNew ( ) )
27
27
. pipe ( gulpESLintNew . format ( ) ) // Output lint results to the console.
@@ -188,7 +188,7 @@ gulp.task('ext:copy-dependencies', (done) => {
188
188
// Compile tests
189
189
gulp . task ( 'ext:compile-tests' , ( done ) => {
190
190
return gulp . src ( [
191
- config . paths . project . root + '/test/**/*.ts' ,
191
+ config . paths . project . root + '/test/unit/ **/*.ts' ,
192
192
config . paths . project . root + '/typings/**/*.ts' ] )
193
193
. pipe ( srcmap . init ( ) )
194
194
. pipe ( tsProject ( ) )
@@ -198,8 +198,8 @@ gulp.task('ext:compile-tests', (done) => {
198
198
process . exit ( 1 ) ;
199
199
}
200
200
} )
201
- . pipe ( srcmap . write ( '.' , { includeContent : false , sourceRoot : '../test' } ) )
202
- . pipe ( gulp . dest ( 'out/test/' ) ) ;
201
+ . pipe ( srcmap . write ( '.' , { includeContent : false , sourceRoot : '../test/unit ' } ) )
202
+ . pipe ( gulp . dest ( 'out/test/unit/ ' ) ) ;
203
203
204
204
} ) ;
205
205
@@ -236,7 +236,7 @@ gulp.task('ext:test', async () => {
236
236
}
237
237
process . env . JUNIT_REPORT_PATH = workspace + '/test-reports/test-results-ext.xml' ;
238
238
var args = [ '--verbose' , '--disable-gpu' , '--disable-telemetry' , '--disable-updates' , '-n' ] ;
239
- let extensionTestsPath = `${ workspace } /out/test` ;
239
+ let extensionTestsPath = `${ workspace } /out/test/unit ` ;
240
240
let vscodePath = await vscodeTest . downloadAndUnzipVSCode ( ) ;
241
241
await vscodeTest . runTests ( {
242
242
vscodeExecutablePath : vscodePath ,
@@ -261,7 +261,7 @@ gulp.task('watch-src', function () {
261
261
} ) ;
262
262
263
263
gulp . task ( 'watch-tests' , function ( ) {
264
- return gulp . watch ( './test/**/*.ts' , gulp . series ( 'ext:compile-tests' ) )
264
+ return gulp . watch ( './test/unit/ **/*.ts' , gulp . series ( 'ext:compile-tests' ) )
265
265
} ) ;
266
266
267
267
// Do a full build first so we have the latest compiled files before we start watching for more changes
0 commit comments