File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Nesteo.Server.IntegrationTests Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ jobs:
1414 MYSQL_ROOT_PASSWORD : root
1515 steps :
1616 - checkout
17- # - run:
18- # name: Run tests
19- # command: dotnet test
20- # environment:
21- # ConnectionStrings__DefaultConnection: "Server=localhost;Database=test;User=root;Password=root"
17+ - run :
18+ name : Run tests
19+ command : dotnet test
20+ environment :
21+ ConnectionStrings__DefaultConnection : " Server=localhost;Database=test;User=root;Password=root"
22+ Storage__ImageUploadsDirectoryPath : " /tmp/nesteo-uploads"
2223 build :
2324 executor : docker-instance
2425 steps :
Original file line number Diff line number Diff line change 1+ using Xunit ;
2+
3+ [ assembly: CollectionBehavior ( DisableTestParallelization = true ) ]
Original file line number Diff line number Diff line change 11using System ;
2+ using System . Collections . Generic ;
23using System . IO ;
34using System . Linq ;
45using Microsoft . AspNetCore . Hosting ;
56using Microsoft . AspNetCore . Mvc . Testing ;
7+ using Microsoft . EntityFrameworkCore ;
68using Microsoft . Extensions . Configuration ;
79using Microsoft . Extensions . DependencyInjection ;
810using Microsoft . Extensions . Logging ;
@@ -29,7 +31,7 @@ protected override void ConfigureWebHost(IWebHostBuilder builder)
2931 NesteoDbContext dbContext = scope . ServiceProvider . GetRequiredService < NesteoDbContext > ( ) ;
3032
3133 // Ensure the database is created
32- dbContext . Database . EnsureCreated ( ) ;
34+ dbContext . Database . Migrate ( ) ;
3335 } ) ;
3436 }
3537 }
You can’t perform that action at this time.
0 commit comments