This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Grunt testfile ide action configuration - how to specify filename? | ||
---|---|---|---|
Product: | javascript | Reporter: | capricious |
Component: | Tools | Assignee: | Tomas Mysik <tmysik> |
Status: | NEW --- | ||
Severity: | normal | CC: | theofanis |
Priority: | P2 | ||
Version: | 8.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | Gruntfile.js |
Description
capricious
2015-10-17 10:40:59 UTC
(In reply to capricious from comment #0) > What is the placeholder or variable in Netbeans for the filename? Just to be sure - can you please provide an example of such a Grunt task and what it does exactly? > Are there variables? No, none at the moment. Feel free to provide a list of possible variables, we could add them. Thanks for reporting. Created attachment 156796 [details] Gruntfile.js With the attached Grunfile.js you can do something like... sh> grunt testfile:test/app/models/ratelimit.js Running "testfile:test/app/models/ratelimit.js" (testfile) task testfile: test/app/models/ratelimit.js Running "jshint:files" (jshint) task >> 2 files lint free. Running "mochaTest:test" (mochaTest) task synchronizing database n4vnewsletter_test synchronized database n4vnewsletter_test Ratelimit #update ✓ should increase blockcount (116ms) 1 passing (1s) Done, without errors. The 0before.js is the database setup needed for all of my tests. The task replaces the default file list with the 0before.js plus the one specified after the colon. So it would be nice to provide a variable with the currently active test file or the test file you would navigate to with Ctrl+Alt+T. |