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
26 changes: 26 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# GovTool Tests

This directory contains tests for the GovTool project.

## 📍 Navigation

- [Backend Tests](./govtool-backend/)
- [Frontend Tests](./govtool-frontend/playwright/)
- [Load Tests](./load-testing/)
- [Test Infrastructure](./test-infrastructure/)
- [Metadata API](./test-metadata-api/)

## Backend Tests
- Conducts basic tests on GovTool backend endpoints using Python.

## Frontend Tests
- Performs integration tests on the deployed GovTool platform using Playwright.

## Load Tests
- Executes load tests on the GovTool API using Gatling.

## Test Infrastructure
- Includes Docker Compose files and scripts to deploy and manage the GovTool test environment.

## Metadata API
- A simple service to host JSON metadata during testing.
2 changes: 0 additions & 2 deletions tests/cardano-test-wallet/index.js

This file was deleted.

23 changes: 0 additions & 23 deletions tests/cardano-test-wallet/index.js.LICENSE.txt

This file was deleted.

55 changes: 0 additions & 55 deletions tests/cardano-test-wallet/types.d.ts

This file was deleted.

525 changes: 525 additions & 0 deletions tests/govtool-frontend/playwright/lock_logs.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static List<String> fetchDrepIds(String baseUrl) {

// Fetch about 5 pages
for (int page = 0; page < 5; page++) {
String requestUrl = baseUrl + "/drep/list" + "?page=" + page + "&size=" + PAGE_SIZE;
String requestUrl = baseUrl + "drep/list" + "?page=" + page + "&size=" + PAGE_SIZE;
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(requestUrl))
.GET()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private PopulationBuilder makeScenario(String name, ChainBuilder chain, double u
// Load Simulation
{
knownDreps= DrepListFetcher.fetchDrepIds(API_URL);
var DREP_USER_RATI0=0.3
var DREP_USER_RATI0=0.3;
setUp(
makeScenario("User Connects and Leave", exec(), 0.1)
, makeScenario("User Registers as Drep",
Expand Down