Skip to content

Commit b911b18

Browse files
author
David First
committed
bit test shows the error stack in case of a fatal error
1 parent 6c0d35e commit b911b18

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [unreleased]
99

10-
- fix the "--verbose" flag of `bit test`
10+
- `bit test` shows the error stack in case of a fatal error
1111
- add logger
1212
- support debug-mode for e2e tests
1313

src/api/consumer/lib/test-inline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { loadConsumer } from '../../../consumer';
33
import InlineId from '../../../consumer/bit-inline-id';
44
import Bit from '../../../consumer/component';
55

6-
export function testInline(id: string, verbose: boolean): Promise<Bit> {
6+
export function testInline(id: string, verbose: boolean = true): Promise<Bit> {
77
return loadConsumer()
88
.then(consumer =>
99
consumer.runComponentSpecs(InlineId.parse(id), verbose)
1010
);
1111
}
1212

13-
export function testInlineAll(verbose: boolean): Promise<Bit> {
13+
export function testInlineAll(verbose: boolean = true): Promise<Bit> {
1414
return loadConsumer()
1515
.then(consumer =>
1616
consumer.runAllInlineSpecs(verbose)

src/cli/commands/public-cmds/test-cmd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export default class Test extends Command {
2222
verbose: ?bool,
2323
}): Promise<any> {
2424
function test() {
25-
if (!id) return testInlineAll(verbose);
26-
if (inline) return testInline(id, verbose);
25+
if (!id) return testInlineAll();
26+
if (inline) return testInline(id);
2727
return testInScope({ id, environment, save, verbose });
2828
}
2929

0 commit comments

Comments
 (0)