Florent Benoit
0ed93e6af1
refactor(vitest.config): replace workspace by projects
...
workspace is deprecated in v3.2 and is removed in v4 of vitest
replace the usage
https://vitest.dev/guide/projects.html#test-projects
Signed-off-by: Florent Benoit <[email protected] >
2025-11-03 10:42:40 +01:00
axel7083
b8cbdf8636
chore(vitest): enable default reporter on CI ( #12209 )
...
* chore(vitest): enable default reporter on CI
Signed-off-by: axel7083 <[email protected] >
* fix: using proper env
Signed-off-by: axel7083 <[email protected] >
---------
Signed-off-by: axel7083 <[email protected] >
2025-04-15 12:13:23 +02:00
axel7083
5a6db5a0ee
feat(vitest): configure workspace ( #12111 )
...
* feat(vitest): configured workspace
Signed-off-by: axel7083 <[email protected] >
* fix: include build step in test:unit
Signed-off-by: axel7083 <[email protected] >
* fix: rename vitest config to default
Signed-off-by: axel7083 <[email protected] >
---------
Signed-off-by: axel7083 <[email protected] >
2025-04-11 00:10:25 +02:00
axel7083
b0ebc44707
chore(vitest): remove unused files ( #12110 )
...
Signed-off-by: axel7083 <[email protected] >
2025-04-09 14:35:31 +02:00
Florent Benoit
4c437933b1
chore: retry up to 3 times a test
...
(can help on a flaky test)
Signed-off-by: Florent Benoit <[email protected] >
2025-04-01 11:59:30 +02:00
Florent Benoit
83c9bccd85
chore: replace prettier by biome
...
faster than prettier and covering out of the box more files
fixes https://github.com/containers/podman-desktop/issues/8970
Signed-off-by: Florent Benoit <[email protected] >
2024-10-11 13:55:01 +02:00
Vladimir Lazar
94fed373a1
chore: switch playwright tests to use playwright test runner instead of vitest ( #8650 )
...
* chore(test): switch e2e tests to use playwright test runner
Signed-off-by: Vladimir Lazar <[email protected] >
2024-08-30 17:35:32 +03:00
Vladimir Lazar
a57201c37e
chore(test): remove logs from junit report ( #8398 )
...
Signed-off-by: Vladimir Lazar <[email protected] >
2024-08-08 18:10:43 +03:00
axel7083
c9caf66aa3
feat: generate storybook css dynamically ( #7541 )
...
* feat: generate storybook css dynamically
Signed-off-by: axel7083 <[email protected] >
* fix: resolve PR comments
Signed-off-by: axel7083 <[email protected] >
* test: ensuring script folder works as expected
Signed-off-by: axel7083 <[email protected] >
* fix: weird vitest behaviour
Signed-off-by: axel7083 <[email protected] >
* fix: vitest restrict to config folder
Signed-off-by: axel7083 <[email protected] >
---------
Signed-off-by: axel7083 <[email protected] >
2024-06-13 09:55:19 +00:00
Ondrej Dockal
7bcfbf24f1
chore(tests): move e2e test base into playwright subfolder ( #6413 )
...
* chore(tests): move e2e test base into playwright subfolder
fixes #6412
Signed-off-by: Ondrej Dockal <[email protected] >
2024-03-15 09:31:18 +00:00
Ondrej Dockal
68cc418b8f
fix: increase hook timeout for e2e tests ( #5326 )
...
Signed-off-by: Ondrej Dockal <[email protected] >
2023-12-19 21:32:57 +01:00
Ondrej Dockal
f42de6807b
chore(tests): include junit,verbose reporters and junit report output… ( #3453 )
...
* chore(tests): include default reporters and junit with report output file on CI
Signed-off-by: Ondrej Dockal <[email protected] >
2023-08-10 15:37:44 +02:00
Ondrej Dockal
8f12e1aafe
chore(tests): setup after test hooks to take a screenhot on failure ( #3456 )
...
* chore(tests): setup after test hooks to take a screenshot on failure, add RunnerTestContext
Signed-off-by: Ondrej Dockal <[email protected] >
2023-08-10 15:00:00 +02:00
Ondrej Dockal
13d2c3f4c6
chore(tests): introduce globalSetup file and extract shared configuration ( #3291 )
...
* feat(tests): introduce globalSetup, extract shared configuration, page object model and podman desktop runner
fixes #3288 , #3290 , #3302
Signed-off-by: Ondrej Dockal <[email protected] >
2023-07-21 12:14:37 +02:00
Florent Benoit
31843addb9
chore: increase hook timeout
...
Change-Id: I7c5741dd5ed169d035d0d0570bae9b5d4d18c837
Signed-off-by: Florent Benoit <[email protected] >
2023-05-16 13:11:03 +02:00
Florent Benoit
a386dc1fd0
fix: e2e test
...
Wait for elements inside the page and check dashboard is displayed
take screenshots into <root-folder>/tests/output/screenshots
record video into <root-folder>/tests/output/videos
fixes https://github.com/containers/podman-desktop/issues/2312
fixes https://github.com/containers/podman-desktop/issues/1780
Change-Id: I4b22e9fa21ce6fc6a85abefb7737c5ba8cbce173
Signed-off-by: Florent Benoit <[email protected] >
2023-05-16 12:16:33 +02:00
Ondrej Dockal
ce32dc4116
chore(test): Add npm test tasks into extensions to be run individually ( #1848 )
...
* chore(test): Add npm test tasks into extensions to be run individually
* Add yarn test:watch task
* Update test config exclude
Signed-off-by: Ondrej Dockal <[email protected] >
2023-03-28 12:56:20 +02:00
Ondrej Dockal
e8a08ee943
chore(quality): fix code coverage reports by adding svelte files ( #1696 )
...
* chore: fix code coverage reports by adding svelte files
- closes #1513
- change reporter to lcov (preparation for sonar analysis)
Signed-off-by: Ondrej Dockal <[email protected] >
2023-03-21 15:05:25 +00:00
Florent Benoit
a8b73b5ab0
feat(extension-api): rename '@tmpwip/extension-api' by '@podman-desktop/api';
...
the namespace was temporary but now that we have external extensions that
should build upon it, make it using a good external name
fixes https://github.com/containers/podman-desktop/issues/1625
Change-Id: I70c7ea1c6a00de791133505366ce9bf47ce11704
Signed-off-by: Florent Benoit <[email protected] >
2023-03-08 10:37:27 +01:00
Ondrej Dockal
a273ef1772
chore: introduce code coverage ( #1376 )
...
* chore: introduce code coverage
Code coverage is run using yarn test target.
It uses c8 provider, configuration is done via vitest config files.
Not a part of the CI. Aimed at important typescript files. Omits svelte files.
Closes #1375
Signed-off-by: Ondrej Dockal <[email protected] >
2023-02-13 10:03:28 +00:00
Florent BENOIT
fe38b75a09
chore: add mocking module for the extension API ( #954 )
...
THis module is only a runtime module so we need to fake the resolution for vitest
Change-Id: Ibcd1b23c6fe263a57de59f66dc240a9cd959e278
Signed-off-by: Florent Benoit <[email protected] >
Signed-off-by: Florent Benoit <[email protected] >
2022-12-05 08:53:57 -05:00
Florent BENOIT
90c68262a1
chore: enable unit tests in extensions using vitest ( #819 )
...
Change-Id: If6c7a8ab547cde5c55f5831ac759243fce25d129
Signed-off-by: Florent Benoit <[email protected] >
Signed-off-by: Florent BENOIT <[email protected] >
2022-11-15 18:24:17 +01:00
Florent Benoit
465bb8a493
feat: initial import
2022-03-08 17:49:35 +01:00