Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

closes #126. show/hide console on tests#131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 1 commit intomasterfromfeature/showHide-console
Mar 8, 2020
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletionsrc/services/testRunner/index.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,7 @@ import logger from '../../services/logger'
import parser from './parser'
import { debounce, throttle } from './throttle'
import onError from '../sentry/onError'
import displayOutput from './output'
import{ clearOutput,displayOutput } from './output'

export interface Payload {
stepId: string
Expand DownExpand Up@@ -68,6 +68,7 @@ const createTestRunner = (config: TestRunnerConfig, callbacks: Callbacks) => {

// success!
if (tap.ok) {
clearOutput()
callbacks.onSuccess(payload)
if (onSuccess) {
onSuccess()
Expand Down
12 changes: 9 additions & 3 deletionssrc/services/testRunner/output.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@ const getOutputChannel = (name: string): vscode.OutputChannel => {
return channel
}

const outputChannelName = 'TEST_OUTPUT'
const outputChannelName = 'CodeRoad Output'

const parseOutput = (text: string): string => {
let result = ''
Expand All@@ -21,11 +21,17 @@ const parseOutput = (text: string): string => {
return result
}

const displayOutput = (text: string) => {
exportconst displayOutput = (text: string) => {
const channel = getOutputChannel(outputChannelName)
channel.clear()
channel.show(true)
const output = parseOutput(text)
channel.append(output)
}

export default displayOutput
export const clearOutput = () => {
const channel = getOutputChannel(outputChannelName)
channel.show(false)
channel.clear()
channel.hide()
}

[8]ページ先頭

©2009-2025 Movatter.jp