- create the directory where the lcov files will be stored
mkdir /tmp/JSCOV
- generate the lcov files:
/* @flow */ | |
import path from 'path'; | |
import readline from 'readline'; | |
import tty from 'tty'; | |
import {fs} from 'mz'; | |
import mkdirp from 'mkdirp'; | |
import promisify from 'es6-promisify'; | |
import {createLogger} from '../util/logger'; |
const {Management} = Cu.import("resource://gre/modules/Extension.jsm", {}); | |
.... | |
class API extends ExtensionAPI { | |
getAPI(context) { | |
const {tabTracker} = Management.global; | |
return { | |
mynamespace: { |
// BE CAREFULL: commit any changes first and run the tests, don't trust the robots ;-) | |
const getSinonCalls = call => ({ | |
type: 'CallExpression', | |
callee: { | |
type: 'MemberExpression', | |
object: { | |
type: 'Identifier', | |
name: 'sinon' | |
}, |
@startuml | |
title FirefoxAndroidExtensionRunner\n"run" Activity Diagram | |
partition "androidRunner.run" { | |
"adb.createClient" --> "this.adbDevicesDiscoveryAndSelect" | |
"this.adbDevicesDiscoveryAndSelect" --> "this.apkPackagesDiscoveryAndSelect" |
TBD
// i18n data that get's passed to jed | |
let DEFAULT_I18N_DATA = { | |
messages: { | |
en: { | |
'This is a test': 'This is a test', | |
}, | |
fr: { | |
'This is a test': 'C\'est un test', | |
}, | |
ja: { |
[revsetalias] | |
# pending commits (used in `hg lg` and `hg lgs aliases`) | |
pending = ancestors(.)&draft() | |
# recent bookmarks (used in `hg rbm` alias) | |
recent_bookmarks($1) = limit(reverse(sort(bookmark())), $1) | |
[alias] | |
# log only pendings commits | |
lg = log -r 'pending' |
node_modules |