NVM 22 is required to develop on VulnScout without any issues. Installation guide for NVM : nvm
nvm install 22
nvm use 22By default, the /frontend directory is not mounted in a volume with the container. To visualise frontend modifications, you will need to run VulnScout in development mode. To do so, you can run the following command:
./vulnscout.sh \
--name example \
--spdx .vulnscout/example/spdx2/example.rootfs.spdx.tar.zst \
--devWe use CQFD to run testing tools in a container.
-
Install Docker: https://docs.docker.com/engine/install/
Make sure Docker runs without requiring sudo. To do so, add your user to the docker group:
sudo groupadd docker
sudo usermod -aG docker $USERLog out and log back in to apply the changes.
-
Install CQFD:
git clone https://github.com/savoirfairelinux/cqfd.git
cd cqfd
sudo make installFor more information, visit the CQFD GitHub repository: https://github.com/savoirfairelinux/cqfd
Once installed, initialise the container image:
cqfd init|
Note
|
This only needs to be done once, unless the container definition (.cqfd/docker/Dockerfile) is modified.
|
-
Linter:
flake8 -
Type checking (from tests/ folder):
mypy --config-file tox.ini -
Unit tests:
pytest -
Coverage (terminal):
pytest --cov=src -
Coverage (HTML):
pytest --cov-report html --cov=src
-
Dev server:
npm run dev -
Build:
npm run build -
Unit tests:
npm run test(uses Jest + Testing Library) -
Linter:
npm run lint(ESLint) -
Coverage report:
npm run coverage
|
Note
|
Running make -C tests test will execute all linters and tests. If pre-commit is installed, flake8 will also run on every commit.
With CQFD, use cqfd -b test to run the full suite.
|
VulnScout follows a semantic versioning strategy with development versions between releases.