green-code-initiative / ecoCode-dashboard

The UI dashboard of ecoCode metrics
GNU General Public License v3.0
1 stars 2 forks source link
sustainability-dashboard sustainable-development

EcoCode-Dashboard

Build and Tests Quality Gate Status Coverage

This project is meant to provide Sustainable Code Dashboards to

Open Architecture

This project starts as a Vue.js application

Still, the code is structured to remain product agnostic

Open and testable Widget Catalog

The Dashboard are constructed from widgets (web components) exposed to storybooks.

It allows:

Project Build and Start

pnpm install

Prefer pnpm for a faster and more secure installation with less network and disk space usage.

Compile and Minify for Production

pnpm build

Run Unit Tests with Vitest

pnpm test:unit

Run End-to-End Tests with Playwright

# Install browsers for the first run
npx playwright install

# Install Playwright dependencies to run browsers
sudo apt-get install libgbm1 # for chrome
sudo apt-get install libgtk-3-0 # for firefox

# When testing on CI, must build the project first
npm run build

# Runs the end-to-end tests
pnpm test:e2e
# Runs the tests only on Chromium
pnpm test:e2e --project=chromium
# Runs the tests of a specific file
pnpm test:e2e tests/example.spec.ts
# Runs the tests in debug mode
pnpm test:e2e --debug

Lint with ESLint

pnpm lint