Prtksxna has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/299749

Change subject: build: Add 'pre-test' task to be run before running tests in 
the browser
......................................................................

build: Add 'pre-test' task to be run before running tests in the browser

Currently the way to get tests results showing in tests/index.html is to
run 'grunt test' first. This does the full build and karma tests and thus
takes a lot of time.

This task does the bare minimum required to get updated tests results
on that interface and takes much lesser time.

Change-Id: I6d6da933320ea33b3daf87f7c870a5c57d07c178
---
M Gruntfile.js
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/49/299749/1

diff --git a/Gruntfile.js b/Gruntfile.js
index a0b5108..6b624f7 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -514,6 +514,9 @@
                'note-quick-build'
        ] );
 
+       // Run this before opening tests/index.html
+       grunt.registerTask( 'pre-test', [ 'quick-build', 'build-tests' ] );
+
        // Minification tasks for the npm publish step
        grunt.registerTask( 'minify', [ 'uglify', 'image', 'cssmin' ] );
        grunt.registerTask( 'publish-build', [ 'build', 'minify' ] );

-- 
To view, visit https://gerrit.wikimedia.org/r/299749
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6d6da933320ea33b3daf87f7c870a5c57d07c178
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Prtksxna <psax...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to