mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-28 07:58:40 +00:00
Basic testing framework
This commit is contained in:
parent
bce6d1e2ef
commit
5052d19656
8 changed files with 97 additions and 4 deletions
11
ProjectLighthouse.Tests/DatabaseFact.cs
Normal file
11
ProjectLighthouse.Tests/DatabaseFact.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using ProjectLighthouse.Types;
|
||||
using Xunit;
|
||||
|
||||
namespace ProjectLighthouse.Tests {
|
||||
public sealed class DatabaseFact : FactAttribute {
|
||||
public DatabaseFact() {
|
||||
ServerSettings.DbConnectionString = "server=127.0.0.1;uid=root;pwd=lighthouse;database=lighthouse";
|
||||
if(!ServerSettings.DbConnected) Skip = "Database not available";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue