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

Unit tests for frontend application #355

Merged
merged 22 commits into from
Sep 30, 2024
Merged

Unit tests for frontend application #355

merged 22 commits into from
Sep 30, 2024

Conversation

rezib
Copy link
Contributor

@rezib rezib commented Sep 27, 2024

Add tests assets and unit tests for VueJS frontend application.

Also load runtime plugin to avoid warning for unknown symbol and format
with prettier.
This is notably useful for unit tests.
Factorize test environment init functions with other tests.
Introduce tests sub-package in pyproject.toml in order to install easily
Python dependencies to run unit tests of backend applications.
Tests are located in tests/ subdir, then standard app exclusion path can
be safely removed. Additional tsconfig file is included for vitest.
Instead of importing router exported variable, call standard useRouter()
instead.
Add test for successful login form submission. Use vue-router-mock
package to mock the router and check routes changes.
The setuptools package is actually required to import pkg_resources in
version module. And sshtunnel is needed in development environment to
execute dev/setup-dev-environment script.

Also fix alphanumeric sorting with aiohttp.
Configure clusters in development environment to deploy Slurm 24.05 on
tiny, Slurm 23.11 on pocket and Slurm 23.02 on emulator.
This commit introduces a new script dev/crawl-tests-assets that connect
on all components in development environment (slurmrestd, Slurm-web
agent and gateway) to get results of multiple requests and save them in
JSON files as tests assets.
First results of dev/crawl-tests-assets with responses from slurmrestd,
Slurm-web agent and gateway in development environment.
This should notably facilitate testing to validate content.
Add specific ids to the list items in graphical representation of jobs
progression. This should notably facilitate testing. Job steps are
converted to lower case in logic, it is now capitalized in template.
To avoid confusion with the notion of jobs steps existing in Slurm.
Move job progress component into its own dedicated component.
@rezib rezib merged commit c65dca1 into main Sep 30, 2024
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 30, 2024
@rezib rezib self-assigned this Oct 9, 2024
@rezib rezib added this to the v4.0.0 milestone Oct 9, 2024
@rezib rezib deleted the pr/more-tests branch October 9, 2024 15:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant