Skip to content

Krztk/KtTest

Repository files navigation

KtTest

KtTest is a test management software to create and conduct tests online. This repository only contains a web API.

Features:

  • Question bank
  • Test templates
  • Multiple types of questions
  • Group management
  • Question categories

Requirements

  • .NET 6.0
  • MS SQL Server

How to run

  1. Add missing configuration settings. Use the user secrets tool or edit appsettings.json/appsettings.Development.jsonfiles.

Missing configuration settings:

{
  "ConnectionStrings": {
    "DefaultConnection": <your connection string>
  },
  "Jwt": {
    "Symmetric": {
      "Key": <your secret key>
    },
    "ValidIssuer": "http://localhost:5000",
    "ValidAudience": "http://localhost:5000"
  }
}
  1. Create a database.
  2. Run commands:
  • cd KtTest/KtTest
  • dotnet build
  • dotnet ef database update --context AppDbContext
  • dotnet run

How to run integration tests

  1. Generate a sql script using dotnet ef cli tool.

PS:

dotnet ef migrations script --context AppDbContext | out-file ./script.sql
  1. Create a database and run the generated script.
  2. Change ConnectionStrings.DefaultConnection in KtTest.IntegrationTests' user secrets.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages