Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Sign In

Alorel / personal-build-tools / 367

23 Oct 2018 - 20:45 coverage increased (+5.02%) to 78.602%
367

Pull #33

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
fix travis typecheck script
Pull Request #33: Build

374 of 617 branches covered (60.62%)

Branch coverage included in aggregate %.

288 of 325 new or added lines in 9 files covered. (88.62%)

178 existing lines in 29 files now uncovered.

1470 of 1729 relevant lines covered (85.02%)

38.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/src/fns/xSpawn.ts
1
import {SpawnSyncOptions, SpawnSyncOptionsWithStringEncoding, SpawnSyncReturns} from 'child_process';
2
import * as crossSpawn from 'cross-spawn';
8×
3
import {merge} from 'lodash';
8×
4
import {SafeResult} from '../interfaces/SafeResult';
8×
5

Branches [[0, 0]] missed.
6
export function xSpawnSync(cmd: string, args: string[] = [], opts: SpawnSyncOptions = {}): SpawnSyncReturns<string> {
802×
7
  const defaultOpts: SpawnSyncOptionsWithStringEncoding = {
8
    encoding: 'utf8',
9
    env: process.env,
10
    windowsHide: true
11
  };
802×
12

13
  return crossSpawn.sync(cmd, args, merge(defaultOpts, opts));
8×
14
}
15

752×
16
export function xSpawnSyncSafe(_cmd: string,
752×
17
                               _args?: string[],
18
                               _opts?: SpawnSyncOptions): SafeResult<SpawnSyncReturns<string>> {
19
  try {
20
    return {
21
      ok: true,
UNCOV
22
      result: xSpawnSync.apply(null, arguments)
!
23
    };
24
  } catch (e) {
25
    return {
26
      err: e,
27
      ok: false
28
    };
8×
29
  }
30
}
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
BLOG · TWITTER · Legal & Privacy · Supported CI Services · What's a CI service? · Automated Testing

© 2022 Coveralls, Inc