In the root of the project:
- Copy
TestUsingPluggableComponentCombinations.example
toTestUsingPluggableComponentCombinations
- Open Compze.Everything.sln in Visual Studio 2022 or Rider.
- Preferably you should have administrator access to a SQL database server. By default, Microsoft SQL Server
- To change which database servers the tests run against, edit
TestUsingPluggableComponentCombinations
in the project root
- To change which database servers the tests run against, edit
- If this connection string is valid you're good to go, otherwise set the environment variable below:
Data Source=localhost;Initial Catalog=master;Integrated Security=True;TrustServerCertificate=True;
Running the tests will create several databases on your SQL server prefixed:
Compze_DatabasePool_
.
If you don't have any Sql server, configure
TestUsingPluggableComponentCombinations
to use only theMemory
PersistenceLayer
.
Sets the connection string to use for the database pools that the tests use.
COMPOSABLE_SQL_SERVER_DATABASE_POOL_MASTER_CONNECTIONSTRING
COMPOSABLE_PGSQL_DATABASE_POOL_MASTER_CONNECTIONSTRING
COMPOSABLE_MYSQL_DATABASE_POOL_MASTER_CONNECTIONSTRING
COMPOSABLE_MACHINE_SLOWNESS:
Lets you adjust the expectations for the performance tests.
For example: If you set it to 2.0 performance tests are allowed to take 2.0 times as long to complete without failing.