• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JonasMacielWork / SkillLearning / 16823372950

08 Aug 2025 06:14AM UTC coverage: 60.86% (+3.4%) from 57.508%
16823372950

Pull #50

github

web-flow
Merge afb111ca4 into f648aa498
Pull Request #50: Develop

97 of 136 branches covered (71.32%)

Branch coverage included in aggregate %.

0 of 37 new or added lines in 4 files covered. (0.0%)

1 existing line in 1 file now uncovered.

469 of 794 relevant lines covered (59.07%)

2.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Backend/SkillLearning.Infrastructure/Persistence/ApplicationDbContextFactory.cs
1
using Microsoft.EntityFrameworkCore;
2
using Microsoft.EntityFrameworkCore.Design;
3
using Microsoft.Extensions.Configuration;
4

5
namespace SkillLearning.Infrastructure.Persistence
6
{
7
    public class ApplicationDbContextFactory : IDesignTimeDbContextFactory<ApplicationWriteDbContext>
8
    {
9
        public ApplicationWriteDbContext CreateDbContext(string[] args)
10
        {
NEW
11
            var basePath = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "..", "SkillLearning.Api"));
×
NEW
12
            var userSecretsId = "d7ed92bc-336a-49c6-b635-7ae0f28a198c";
×
13

14
            var config = new ConfigurationBuilder()
×
NEW
15
                .SetBasePath(basePath)
×
NEW
16
                .AddJsonFile("appsettings.json", optional: true)
×
17
                .AddJsonFile("appsettings.Development.json", optional: true)
×
NEW
18
                .AddUserSecrets(userSecretsId)
×
NEW
19
                .AddEnvironmentVariables()
×
UNCOV
20
                .Build();
×
21

NEW
22
            var connectionString = config.GetConnectionString("Default") ?? throw new ArgumentException("Connection string 'Default' not found.");
×
23
            var optionsBuilder = new DbContextOptionsBuilder<ApplicationWriteDbContext>();
×
24
            optionsBuilder.UseNpgsql(connectionString);
×
25

26
            return new ApplicationWriteDbContext(optionsBuilder.Options);
×
27
        }
28
    }
29
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc