Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: html report #2444

Merged
merged 56 commits into from Dec 19, 2022
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
ce4adb5
feat: vitest html report
poyoho Dec 6, 2022
d85c92c
chore: copy ui to vitest dist
poyoho Dec 6, 2022
a659179
feat: report copy ui dist
poyoho Dec 6, 2022
8c32d50
feat: ui report version builder
poyoho Dec 6, 2022
9208d4c
fix: copy file
poyoho Dec 6, 2022
758055c
chore: remove
poyoho Dec 6, 2022
3d77273
feat: html metadata path
poyoho Dec 6, 2022
2ddea5c
feat: add declare
poyoho Dec 6, 2022
7d374c9
feat: static file client
poyoho Dec 6, 2022
36bd86d
feat: mock rpc
poyoho Dec 6, 2022
cb29f14
fix: mock error
poyoho Dec 6, 2022
6b5bb57
chore: update meta
poyoho Dec 6, 2022
8c15597
chore: compress json
poyoho Dec 6, 2022
da5d3f2
chore: comment
poyoho Dec 7, 2022
9d4c650
chore: update merge config
poyoho Dec 7, 2022
35748fd
chore: update
poyoho Dec 7, 2022
d8d5680
chore: lock
poyoho Dec 7, 2022
b9511ca
feat: remove all control command from ui
poyoho Dec 7, 2022
936d109
chore: remove
poyoho Dec 7, 2022
a3baa19
feat: report command
poyoho Dec 7, 2022
bc7c2e9
feat: version tag
poyoho Dec 7, 2022
185db64
chore: reset lock file
poyoho Dec 7, 2022
dfa6073
feat: remove hooks
poyoho Dec 7, 2022
da71d8f
chore: update
poyoho Dec 7, 2022
9865a46
fix: runningPromise
poyoho Dec 7, 2022
6315cc1
Merge branch 'main' into html-report
poyoho Dec 7, 2022
7a3a382
chore: update debug mode and disable click on transform
poyoho Dec 7, 2022
5bfb5d6
docs: report
poyoho Dec 8, 2022
8f5bcc4
chore: remove the version mark
poyoho Dec 8, 2022
3a7b970
Merge branch 'main' into html-report
sheremet-va Dec 13, 2022
86bd94a
feat: report
poyoho Dec 13, 2022
5047e4b
fix: lint
poyoho Dec 13, 2022
9da35db
chore: copy ui from @vitest/ui
poyoho Dec 13, 2022
5969958
chore: export report from ui
poyoho Dec 13, 2022
dc8e406
chore: update
poyoho Dec 13, 2022
6c42ad7
fix: lint
poyoho Dec 13, 2022
d3f43da
docs: ui html report
poyoho Dec 13, 2022
ff951da
feat: ensurePackageInstalled
poyoho Dec 14, 2022
b807e7d
update
poyoho Dec 14, 2022
56a4285
feat: more info
poyoho Dec 14, 2022
da3263f
Merge branch 'main' into html-report
sheremet-va Dec 16, 2022
082f2b1
chore: improve documentation and tests
sheremet-va Dec 16, 2022
c94b627
chore: fix UI bundle size
sheremet-va Dec 16, 2022
78f344d
chore: ui tests
sheremet-va Dec 16, 2022
3bac646
perf: remove output report using the global variable to judge report …
poyoho Dec 17, 2022
966d59b
chore: update
poyoho Dec 17, 2022
e0c346d
fix: build
poyoho Dec 17, 2022
d941bf7
fix: report
poyoho Dec 17, 2022
8e41f66
fix: parse
poyoho Dec 17, 2022
0fcd30d
chore: fix html reporters test
sheremet-va Dec 17, 2022
6561232
chore: don't store config in html reporter test
sheremet-va Dec 17, 2022
9f6d669
chore: update ui docs
sheremet-va Dec 17, 2022
9e34e9a
feat: log
poyoho Dec 17, 2022
e03b564
chore: fix tests
sheremet-va Dec 17, 2022
1eb857f
test: fix html reporter tests
sheremet-va Dec 17, 2022
c1e04c2
docs add vitest fo UI reporter
sheremet-va Dec 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/ui/client/components/FileDetails.vue
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { client, current, currentLogs } from '~/composables/client'
import { client, current, currentLogs, isReport } from '~/composables/client'
import type { Params } from '~/composables/params'
import { viewMode } from '~/composables/params'
import type { ModuleGraph } from '~/composables/module-graph'
Expand Down Expand Up @@ -52,6 +52,7 @@ function onDraft(value: boolean) {
</div>
<div class="flex text-lg">
<IconButton
v-if="!isReport"
v-tooltip.bottom="'Open in editor'"
title="Open in editor"
icon="i-carbon-launch"
Expand All @@ -76,6 +77,7 @@ function onDraft(value: boolean) {
Module Graph
</button>
<button
v-if="!isReport"
tab-button
:class="{ 'tab-button-active': viewMode === 'editor' }"
@click="changeViewMode('editor')"
Expand Down
5 changes: 3 additions & 2 deletions packages/ui/client/components/Navigation.vue
Expand Up @@ -4,7 +4,7 @@ import { currentModule, dashboardVisible, showDashboard } from '../composables/n
import { client, findById } from '../composables/client'
import type { Task } from '#types'
import { isDark, toggleDark } from '~/composables'
import { files, runAll } from '~/composables/client'
import { files, isReport, runAll } from '~/composables/client'
import { activeFileId } from '~/composables/params'

const failedSnapshot = computed(() => files.value && hasFailedSnapshot(files.value))
Expand Down Expand Up @@ -34,12 +34,13 @@ const toggleMode = computed(() => isDark.value ? 'light' : 'dark')
@click="showDashboard(true)"
/>
<IconButton
v-if="failedSnapshot"
v-if="(failedSnapshot && !isReport)"
v-tooltip.bottom="'Update all failed snapshot(s)'"
icon="i-carbon-result-old"
@click="updateSnapshot()"
/>
<IconButton
v-if="!isReport"
v-tooltip.bottom="filteredTests ? (filteredTests.length === 0 ? 'No test to run (clear filter)' : 'Rerun filtered') : 'Rerun all'"
:disabled="filteredTests?.length === 0"
icon="i-carbon-play"
Expand Down
5 changes: 3 additions & 2 deletions packages/ui/client/components/Suites.vue
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { hasFailedSnapshot } from '@vitest/ws-client'
import { client, current, runCurrent } from '~/composables/client'
import { client, current, isReport, runCurrent } from '~/composables/client'

const name = computed(() => current.value?.name.split(/\//g).pop())

Expand All @@ -16,12 +16,13 @@ const updateSnapshot = () => current.value && client.rpc.updateSnapshot(current.
<span font-bold text-sm flex-auto ws-nowrap overflow-hidden truncate>{{ name }}</span>
<div class="flex text-lg">
<IconButton
v-if="failedSnapshot"
v-if="(failedSnapshot && !isReport)"
v-tooltip.bottom="`Update failed snapshot(s) of ${current.name}`"
icon="i-carbon-result-old"
@click="updateSnapshot()"
/>
<IconButton
v-if="!isReport"
v-tooltip.bottom="'Rerun file'"
icon="i-carbon-play"
@click="runCurrent()"
Expand Down