Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/media/testCoverage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions docs/tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ TODO!

### To run tests with test coverage

- `cd frontend`
- `npm run test -- --coverage`

### To run tests with test coverage if not all tests are running
Expand All @@ -58,5 +59,7 @@ TODO!

## Test coverage

The table below shows the test coverage for the application. The test coverage is overall above XX%.
**Table**
The table below shows the test coverage for the application. Overall statement and line coverage is above 80%, while branch (66%) and function (74%) coverage is lower.
Files with coverage below 80% will be prioritized for further testing to bring their coverage up.

![Test coverage](media/testCoverage.png)
2 changes: 1 addition & 1 deletion frontend/src/AppRoutes.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Route, Routes } from "react-router-dom";
import PlantMatchPage from "./pages/plantMatch/PlantMatchPage.tsx";
import ExplorePlants from "./pages/explorePlants/ExplorePlants.tsx";
import MyMatchesPage from "./pages/MyMatches/MyMatchesPage.tsx";
import MyMatchesPage from "./pages/myMatches/MyMatchesPage.tsx";
import Profile from "./pages/profile/Profile.tsx";

// eslint-disable-next-line react-refresh/only-export-components
Expand Down
102 changes: 0 additions & 102 deletions frontend/src/tests/test_profile/__snapshots__/Profile.test.tsx.snap

This file was deleted.

Loading