Setting up JavaScript unit tests for a Cobalt product
in TR Internal
I'm working on setting up JavaScript unit tests for Advisor (GTLRMaxwell) website. What do I need to do make the test consistent with the rest of Cobalt? How do I run Cobalt's existing tests? Is there some documentation for this?
Tagged:
0
Best Answer
-
For any new verticals and products, we are recommending that JavaScript unit tests are written using the [QUnit testing framework][1] from jQuery. The Search and Alerts verticals are already using QUnit, and there are plans to migrate the other verticals over to QUnit in upcoming iterations. We have build integration working for the WLNStaticContent and SharedStaticContent builds using [PhantomJS][2] (essentially a headless WebKit browser). We can add this functionality other builds fairly easily as well on request by following [the process I've outlined on the NSAWiki][3]. Relevant research/analysis that we conducted in making the decision to standardize on QUnit can be found on the related [NSAWiki page][4]. [1]:
http://docs.jquery.com/QUnit [2]:
http://www.phantomjs.org/ [3]:
http://nsawiki.int.westgroup.com/wiki/index.php/How_to_hook_QUnit_into_the_Cobalt_Build_Process [4]:
http://nsawiki.int.westgroup.com/wiki/index.php/JavaScript_Testing_Framework_Analysis1
Answers
-
Cool, thanks James. Are there any instructions on how to wire up a platform product's specific QUnit tests to run as part of the build?0
-
@Ryan: I'm guessing this will be part of the SharedStaticContent build. Is that correct? Let me know so I can get more specific about setup details.0
-
Yes, that's correct0
-
I'll be setting this up for the SharedStaticContent build this iteration as I've had a second request for it. I'll document how to setup it up while I'm doing so.0
-
Thanks James0
-
Answer updated with the latest info.0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛