<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Varealis on Medium]]></title>
        <description><![CDATA[Stories by Varealis on Medium]]></description>
        <link>https://medium.com/@varealis?source=rss-6f381206e68------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6_JLdPaxuO0kibrowCA9Tw.png</url>
            <title>Stories by Varealis on Medium</title>
            <link>https://medium.com/@varealis?source=rss-6f381206e68------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 14:42:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@varealis/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[In-Memory Acceptance Tests with Authentication]]></title>
            <link>https://medium.com/@varealis/in-memory-acceptance-tests-with-authentication-949b0c562b73?source=rss-6f381206e68------2</link>
            <guid isPermaLink="false">https://medium.com/p/949b0c562b73</guid>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[identity-server]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[authorisation]]></category>
            <dc:creator><![CDATA[Varealis]]></dc:creator>
            <pubDate>Thu, 19 Dec 2019 14:34:11 GMT</pubDate>
            <atom:updated>2019-12-19T14:34:11.109Z</atom:updated>
            <content:encoded><![CDATA[<p>In my last <a href="https://www.varealis.com/Blog/99c07a2d-75df-4b84-aa72-2eef2067d047">blog post</a>, I showed how it was possible to run integration and acceptance tests at a level where it is still possible to isolate the code under test from third-party dependencies. Here I’m going to detail (using real-life examples) how Varealis expanded these tests to also include Authentication and Authorisation when testing our ASP.Net Core applications.</p><h3>Introduction</h3><p>There are countless ways to add authentication and/or authorisation to an ASP.Net Core web application. At Varealis we have a dedicated microservice responsible for user (and client) authentication across the RadSpider platform. This service uses ‘ <a href="http://docs.identityserver.io/en/latest/">Identity Server 4</a>’ an excellent open-source OpenID Connect and OAuth 2.0 framework for ASP.Net. Once authenticated on the platform, each microservice is then responsible for authorisation by mapping the user to the relevant claims.</p><h3>Configuring an Identity Server In-Memory</h3><p>Similarly to our application under test we want to host an instance of Identity Server inside a local Test Server. This Identity Server closely mimics our microservice&#39;s implementation but uses In-Memory providers instead of our usual database dependencies.</p><pre>var identityServerBuilder = new WebHostBuilder()<br>.ConfigureServices(services =&gt;<br>{<br>   services.AddIdentityServer()<br>      .AddDeveloperSigningCredential(persistKey: false)<br>      .AddInMemoryPersistedGrants()<br>      .AddInMemoryIdentityResources(IdentityResources)<br>      .AddInMemoryApiResources(ApiResources)<br>      .AddInMemoryClients(this.Clients)<br>      .AddTestUsers(Users.Where(x =&gt; x != null).Select(user =&gt;<br>      {<br>         return new TestUser<br>         {<br>            SubjectId = Guid.NewGuid().ToString(),<br>            Username = user.Username,<br>            Password = user.Password,<br>            IsActive = true,<br>            Claims = new List&lt;Claim&gt;<br>            {<br>               new Claim(JwtClaimTypes.Role, user.Role),<br>                  user.PartyId != default<br>                  ? new Claim(RadSpiderClaimTypes.PartyId, user.PartyId.ToString())<br>                  : new Claim(&quot;NoPartyId&quot;, Guid.Empty.ToString()),<br>            },<br>         };<br>      }).ToList());<br>})<br>.Configure(app =&gt;<br>{<br>   app.UseIdentityServer();<br>});</pre><pre>var identityServer = new TestServer(identityServerBuilder);</pre><p>We then configure the relevant Resources ( IdentityResources and ApiResources), Client s and Users for the acceptance tests. For all the same reasons that test environments closely replicate our live environments any differences in the configuration must be limited to the fields that require changes to run the services locally.</p><h3>Configuring the Resources</h3><p>Setting up the In-Memory Identity and API Resources is as simple as copying the relevant resources from your real Identity Server.</p><pre>private static List&lt;IdentityResource&gt; IdentityResources =&gt;<br>   new List&lt;IdentityResource&gt;<br>   { <br>      new IdentityResource<br>      {<br>         Enabled = true,<br>         Name = &quot;openid&quot;,<br>         DisplayName = &quot;Your user identifier&quot;,<br>         Description = null, <br>         Required = true,<br>         Emphasize = false,<br>         ShowInDiscoveryDocument = true, <br>      }, <br>      // Removed for brevity<br>   }; </pre><pre>private static List&lt;ApiResource&gt; ApiResources =&gt;<br>   new List&lt;ApiResource&gt;<br>   {<br>      new ApiResource<br>      {<br>         Enabled = true, <br>         Name = &quot;Service-Name&quot;, <br>         DisplayName = &quot;Service Name&quot;, <br>         Scopes = new List&lt;Scope&gt;<br>         {<br>            new Scope<br>            { <br>               Name = &quot;Scope&quot;,<br>               DisplayName = &quot;Scope Name&quot;,<br>               Required = true,<br>               ShowInDiscoveryDocument = true,<br>            },<br>         },<br>         UserClaims = new List&lt;string&gt;<br>         { <br>            JwtClaimTypes.Role,<br>            &quot;party_id&quot;,<br>         },<br>      },<br>   };</pre><h3>Configuring the Client</h3><p>Some changes to the client’s configuration need to be made for it to work in an In-Memory TestServer. Make sure to override the RedirectUris to include the &#39;localhost&#39; URL and override the ClientSecret so that it matches the one used by the application under test.</p><pre>private List&lt;Client&gt; Clients<br>{<br>    get<br>    {<br>        return new List&lt;Client&gt;<br>        {<br>            new Client<br>            {<br>                Enabled = true,<br>                ClientId = &quot;AcceptanceTests&quot;,<br>                ClientSecrets = new List&lt;Secret&gt;<br>                {<br>                    new Secret(this.config.GetValue&lt;string&gt;(<br>                        &quot;SecurityConfig:ApiSecret&quot;).ToSha256())<br>                    {<br>                        Type = &quot;SharedSecret&quot;,<br>                    },<br>                },<br>                ProtocolType = &quot;oidc&quot;,<br>                AllowedGrantTypes = GrantTypes.ResourceOwnerPassword,<br>                RedirectUris = new List&lt;string&gt;<br>                    { &quot;<a href="http://localhost/signin-oidc">http://localhost/signin-oidc</a>&quot; },<br>                AllowedScopes = new List&lt;string&gt;<br>                {<br>                    &quot;openid&quot;,<br>                    &quot;profile&quot;,<br>                    &quot;Scope&quot;,<br>                },<br>                RequireClientSecret = true,<br>                RequireConsent = false,<br>                // Removed for brevity<br>            },<br>        };<br>    }<br>}</pre><h3>Configuring Users</h3><p>Our Identity Server stamps authenticated users with a &#39;Role&#39; claim and a custom PartyId claim. Each microservice is then responsible for mapping the Role to specific claims/actions (I.e. Administrators can do actions A, B and C but Reporting Users can only do C), while the PartyId is used to determine whether or not the user &#39;owns&#39; a given resource.</p><p>With this in mind, we need to configure a user for each support ‘Role’, one with an unrecognised role type. I then configured a couple of users across the different roles with invalid PartyId s. These users are then stored so they can be accessed by the initial startup configuration and the acceptance tests at run time.</p><pre>public static class PlatformUsers<br>{<br>    private static readonly Dictionary&lt;UserType, PlatformUser&gt; ConfiguredUsers<br>        = new Dictionary&lt;UserType, PlatformUser&gt;<br>    {<br>        { UserType.Undefined,  null },<br>        { <br>            UserType.Unrecognised,  <br>            new PlatformUser(<br>                UserType.Unrecognised,<br>                username: &quot;unrecognised&quot;,<br>                password: &quot;unrec0gn1sed&quot;,<br>                role: &quot;UNRECOGNISED&quot;,<br>                partyId: Guid.NewGuid())<br>        },<br>        {<br>            UserType.NoPartyId,<br>            new PlatformUser(<br>                UserType.NoPartyId,<br>                username: &quot;nopartyId&quot;,<br>                password: &quot;n0party1d&quot;,<br>                role: &quot;ADMINISTRATOR&quot;,<br>                partyId: Guid.Empty)<br>        },<br>        {<br>            UserType.Administrator,<br>            new PlatformUser(<br>                UserType.Administrator,<br>                username: &quot;administrator&quot;,<br>                password: &quot;ad1m1n&quot;,<br>                role: &quot;ADMINISTRATOR&quot;,<br>                partyId: Guid.NewGuid()) <br>        },<br>        // Removed for brevity<br>    };</pre><pre>public static IEnumerable&lt;PlatformUser&gt; Users =&gt; ConfiguredUsers.Values;</pre><pre>public static PlatformUser GetUser(UserType userType)<br>    {<br>        if (ConfiguredUsers.TryGetValue(userType, out var user))<br>        {<br>            return user;<br>        }</pre><pre>throw new Exception(<br>            $&quot;No user has been configured for the user type: {userType}&quot;);<br>    }<br>}</pre><h3>Configuring the Application Under Test</h3><p>Now that all of the boring stuff is out of the way we need to modify the application under test to point at our In-Memory Identity Server. To do this we need to inject the TestServer that is hosting our Identity Server into our mock Startup class. I did this by extending the WebApplicationFactory and injecting the TestServer alongside the other mocked dependencies.</p><pre>public class MockApiWebApplicationFactory<br>{<br>    /// &lt;summary&gt;<br>    /// Initializes a new instance of the<br>    /// &lt;see cref=&quot;MockApiWebApplicationFactory&quot;/&gt; class.<br>    /// &lt;/summary&gt;<br>    /// &lt;param name=&quot;environment&quot;&gt;The hosting environment.&lt;/param&gt;<br>    /// &lt;param name=&quot;identityServer&quot;&gt;The Identity Server.&lt;/param&gt;<br>    public MockApiWebApplicationFactory(<br>        IWebHostEnvironment environment,<br>        TestServer identityServer)<br>    {<br>        this.environment = environment;<br>        this.identityServer = identityServer;<br>    }</pre><pre>    /// &lt;inheritdoc/&gt;<br>    protected override IWebHostBuilder CreateWebHostBuilder()<br>    {<br>        return WebHost.CreateDefaultBuilder()<br>            // The Mock Startup that extends the common Base Startup.<br>            .UseStartup&lt;MockApiStartup&gt;()<br>            .ConfigureServices(services =&gt;<br>            {<br>                services.AddSingleton(this.identityServer);<br>                services.AddSingleton(this.environment);<br>            });<br>    }<br>}</pre><p>Then add an abstract method void ConfigureAuthenticationOptions( IdentityServerAuthenticationOptions options, IServiceCollection services) to the StartupBase. The standard implementation in our target application&#39;s Startup class can be left unimplemented, but add the following code to our MockApiStartup where the IdentityServer is the TestServer we injected earlier.</p><pre>/// &lt;inheritdoc/&gt;<br>protected override IdentityServerAuthenticationOptions <br>    ConfigureAuthenticationOptions(<br>        IdentityServerAuthenticationOptions options,<br>        IServiceCollection services)<br>{<br>    options.JwtBackChannelHandler = this.identityServer.CreateHandler();</pre><pre>    services.AddHttpClient(<br>        OAuth2IntrospectionDefaults.BackChannelHttpClientName,<br>        _ =&gt; this.identityServer.CreateClient());</pre><pre>    return options;<br>}</pre><p>Now all we need to do is make sure that we override the values in configuration so the for the Identity Server’s URL is set to ‘https://localhost&#39;. We then configure authentication in the StartupBase class like normal (adding the call to `ConfigureAuthenticationOptions`).</p><pre>services.AddAuthentication(options =&gt;<br>{<br>    options.DefaultScheme = JwtBearerDefaults.AuthenticationScheme;<br>})<br>.AddIdentityServerAuthentication(options =&gt;<br>{<br>    options.Authority = securityConfig.GetValue&lt;string&gt;(&quot;IdentityServerUrl&quot;);<br>    options.ApiSecret = securityConfig.GetValue&lt;string&gt;(&quot;APISecret&quot;);</pre><pre>    options.EnableCaching = true;<br>    options.CacheDuration = TimeSpan.FromMinutes(10);<br>    options.SupportedTokens = SupportedTokens.Both;</pre><pre>    options.LegacyAudienceValidation = false;</pre><pre>    this.ConfigureAuthenticationOptions(options, services);<br>});</pre><h3>Configuring the Secure Client</h3><p>Now when we create a HttpClient from the TestServer hosting the application under test it will be configured to use our In-Memory Identity Server to authenticate requests. We could now use this HttpClient to interact with the application under test but I&#39;m going to use a SecureServiceClient class that uses a client that we automatically generated using swagger and autorest.</p><pre>TestServer identityServer = IdentityServerApplicationFactory.BuildIdentityServer();</pre><pre>HttpClient applicationClient = new MockApiWebApplicationFactory(<br>    subHostingEnvironment,<br>    identityServer,<br>    repository,<br>    subBusControl).CreateClient();</pre><pre>SecureServiceClient secureClient = new SecureServiceClient(<br>    configuration,<br>    identityServer,<br>    applicationClient);</pre><h4>Notes</h4><ul><li>A lot of this implementation has been cut out for brevity.</li><li>IServiceClient is the interface that is generated by autorest.</li><li>`ISecureServiceClient` extends the IServiceClient interface, adding the AuthenticateAs method.</li><li>ServiceClient is the client that is generated by autorest.</li><li>ClientCredentials is a no-op extension to Microsoft.Rest.ServiceClientCredentials where it calls the base class.</li></ul><pre>public class SecureServiceClient :<br>    ISecureServiceClient&lt;IServiceClient&gt;,<br>    IServiceClient<br>{<br>    private readonly IConfiguration config;<br>    private readonly HttpClient httpClient;<br>    private readonly TestServer identityServer;</pre><pre>    /// &lt;summary&gt;<br>    /// Initializes a new instance of the<br>    /// &lt;see cref=&quot;SecureServiceClient&quot;/&gt; class.<br>    /// &lt;/summary&gt;<br>    /// &lt;param name=&quot;configuration&quot;&gt;<br>    /// The configuration.<br>    /// &lt;/param&gt;<br>    /// &lt;param name=&quot;identityServer&quot;&gt;<br>    /// The &lt;see cref=&quot;TestServer&quot;/&gt; used to host Identity Server.<br>    /// &lt;/param&gt;<br>    /// &lt;param name=&quot;httpClient&quot;&gt;<br>    /// The &lt;see cref=&quot;HttpClient&quot;/&gt; used to comunicate with the Service.<br>    /// &lt;/param&gt;<br>    public SecureServiceClient(<br>        IConfiguration configuration,<br>        TestServer identityServer,<br>        HttpClient httpClient)<br>    {<br>        this.config = configuration;<br>        this.httpClient = httpClient;<br>        this.IdentityServer = identityServer;</pre><pre>        this.Client = new ServiceClient(<br>            new ClientCredentials(),<br>            this.httpClient,<br>            true);<br>    }</pre><pre>    public IServiceClient Client { get; }</pre><pre>    public async Task&lt;IServiceClient&gt; AuthenticateAs(PlatformUser user)<br>    {<br>        // If the user is null we don&#39;t try to authenticate with the service.<br>        if (user == null)<br>        {<br>            return this;<br>        }</pre><pre>        var passwordRequest = new PasswordTokenRequest<br>        {<br>            Address = &quot;<a href="http://localhost/connect/token">http://localhost/connect/token</a>&quot;,<br>            ClientId = &quot;AcceptanceTests&quot;,<br>            ClientSecret = this.config.GetValue&lt;string&gt;(<br>                &quot;SecurityConfig:ApiSecret&quot;),<br>            UserName = user.Username,<br>            Password = user.Password,<br>            GrantType = &quot;password&quot;,<br>            Scope = &quot;openid profile&quot;,<br>        };</pre><pre>        var passwordToken = await this.IdentityServer.CreateClient()<br>            .RequestPasswordTokenAsync(passwordRequest);</pre><pre>        if (string.IsNullOrWhiteSpace(passwordToken.AccessToken)<br>            || passwordToken.IsError)<br>        {<br>            throw passwordToken.Exception ?? <br>                new UnauthorizedAccessException(&quot;Unable to generate a password token.&quot;);<br>        }</pre><pre>        this.httpClient.SetBearerToken(passwordToken.AccessToken);</pre><pre>        return this;<br>    }</pre><pre>    async Task&lt;HttpOperationResponse&lt;object&gt;&gt;<br>        IServiceClient.PageModelsWithHttpMessagesAsync(<br>            string cursor,<br>            int? limit,<br>            Dictionary&lt;string, List&lt;string&gt;&gt; customHeaders,<br>            CancellationToken cancellationToken)<br>    {<br>        var response = await        this.Client.PageModelsWithHttpMessagesAsync(<br>            cursor,<br>            limit,<br>            customHeaders,<br>            cancellationToken);<br>        return response;<br>    }<br>    // Etc.<br>}</pre><p>This class can then be used to interact with our API Service as an authenticated user, or an unauthenticated user.</p><h3>Happy Testing</h3><p>Hopefully this, in conjunction with my previous blog post, gives you everything you need to produce thorough yet speedy automation tests. Testing at this level (I.e. before deployment) significantly tightens the feedback loop for developers and significantly reduces the number of variables that can lead to flakey, unreliable tests!</p><p>I appreciate that this blog post is very code-heavy, I tried to keep it as concise as possible! If you have any questions about this feel free to <a href="https://twitter.com/JamiePed">tweet me</a> and/or get in touch using the contact form below.</p><p><em>Originally published at </em><a href="https://www.varealis.com/Blog/authenticated-acceptance-tests"><em>https://www.varealis.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=949b0c562b73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running Acceptance Tests in Isolation]]></title>
            <link>https://medium.com/@varealis/running-acceptance-tests-in-isolation-cf60d4fde146?source=rss-6f381206e68------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf60d4fde146</guid>
            <category><![CDATA[dotnet-core]]></category>
            <category><![CDATA[tdd]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Varealis]]></dc:creator>
            <pubDate>Thu, 12 Sep 2019 12:43:21 GMT</pubDate>
            <atom:updated>2019-09-12T12:43:21.324Z</atom:updated>
            <content:encoded><![CDATA[<p>In my last <a href="https://www.varealis.com/Blog/4d8e3ef1-1a1f-4a16-821f-57c6d1444e72">blog post</a>, I discussed the advantages of running acceptance tests at a level where it is still possible to isolate the code under test from third-party dependencies. Here I’m going to detail (using real-life examples) how Varealis has designed its .Net Core applications to run acceptance tests against one of the microservices that helps power RadSpider.</p><h3>ASP.Net Core Acceptance Tests</h3><p>ASP.Net Core offers an in-memory TestServer, made available in the Microsoft.AspNetCore.Mvc.Testing <a href="https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.Testing">nuget package</a>, to allow for integration/acceptance tests to be run without deploying the application to a test environment. A WebApplicationFactory is also provided to streamline the bootstrapping the TestServer and generate a HttpClient that can be used to interact with the web application. For more information about this Microsoft has provided detailed documentation which can be found <a href="https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-2.2">here</a>.</p><h3>Generating a Client</h3><p>By initialising a WebApplicationFactory using the same Startup class that is used to bootstrap the web application, we can generate a basic HttpClient that can interact with the web application.</p><pre>var pipelineId = Guid.NewGuid();</pre><pre>var httpClient = new WebApplicationFactory&lt;Startup&gt;().CreateClient();<br>HttpOperationResponse httpResponse = await httpClient<br>	.GetAsync($&quot;/Pipeline/{pipelineId}&quot;);</pre><p>While this client gives us everything we need to be able to integrate with a web application, since my web applications also automatically generate OpenAPI swagger files using <a href="https://github.com/domaindrivendev/Swashbuckle.AspNetCore">Swashbuckle.AspNetCore</a> I like to use this file to help generate a HttpClient. Not only does this greatly simplify the interactions with the service under test, but it also makes it possible to verify that our documentation effectively describes how to interact with that service. We are using the tools that we will later provide our customers in order to test our application, even at an acceptance test level.</p><p>To do this, I used ‘ <a href="https://github.com/Azure/autorest">autorest</a>’ to automatically generate a client that can be used to interact with the web application. The HttpClient generated by the WebApplicationFactory can then be used to initialise the &#39;autorest&#39; client which provides a friendly interface which can be used to integrate with the service.</p><pre>var httpClient = new WebApplicationFactory&lt;Startup&gt;().CreateClient();</pre><pre>// This PipelineClient was automatically generated by autorest<br>var pipelineClient = new PipelineClient(<br>	new ClientCredentials(),<br>	httpClient,<br>	true);</pre><pre>HttpOperationResponse&lt;PipelineDetails&gt; pipeline = await pipelineClient<br>	.GetPipelineDetailsWithHttpMessagesAsync(Guid.NewGuid());</pre><p>* Note that automatically generated extension methods can also be used when we don’t care to know about the HttpOperationResponse and only the response body. These look something like this...</p><pre>PipelineDetails pipeline = await pipelineClient<br>	.GetPipelineDetails(Guid.NewGuid());</pre><h3>Mocking Dependencies</h3><p>So far, because we are using the application’s original Startup class, we are also relying on all of the original application&#39;s dependencies. For these tests to work in instances where we don&#39;t have access to third-party dependencies like databases and/or service buses we need to replace these dependencies with in-memory alternatives or mocks. To achieve this we have to make some minor changes to the Startup class to allow selected dependencies to be overridden. There are many ways of doing this, but I did this by introducing a base class. The StartupBase class is then responsible for configuring all of the fixed internal dependencies while the now elevated Startup is now responsible for adding/configuring the dependencies that we want to override.</p><pre>public class Startup : StartupBase<br>{<br>	protected override IServiceCollection ConfigurePipelineRepository(IServiceCollection services)<br>	{<br>		var connectionString = this.Configuration<br>			.GetSection(&quot;Persistence&quot;)<br>			.GetValue&lt;string&gt;(&quot;PipelineRepository&quot;);</pre><pre>		var mongoUrl = new MongoUrl(connectionString);<br>		var mongoSettings = MongoClientSettings<br>			.FromUrl(mongoUrl);</pre><pre>		services.AddSingleton&lt;IMongoClient&gt;(<br>			new MongoClient(mongoSettings));</pre><pre>		services.AddSingleton&lt;IPipelineRepository, PipelineRepository&gt;();</pre><pre>		return services;<br>	}<br>}</pre><pre>public abstract class StartupBase<br>{<br>	protected IConfiguration Configuration { get; }</pre><pre>	// A lot of this method has been removed to maintain brevity<br>	public void ConfigureServices(IServiceCollection services)<br>	{<br>		services.AddMvc();<br>		services.AddSwaggerGen();</pre><pre>		this.ConfigurePipelineRepository(services);<br>	}<br>	<br>	protected abstract IServiceCollection ConfigurePipelineRepository(IServiceCollection services);<br>}</pre><p>By doing this any class that extends the StartupBase is now able to configure mocked dependencies in place of third-party dependencies that we don&#39;t want to rely on at this stage. We do this by creating a special MockStartup class which injects mocks into the IServiceCollection in place of the real implementations.</p><pre>using NSubstitute;</pre><pre>public class MockStartup : StartupBase<br>{<br>	protected override IServiceCollection ConfigurePipelineRepository(IServiceCollection services)<br>	{<br>		services.AddSingleton(<br>			_ =&gt; Substitute.For&lt;IPipelineService&gt;());</pre><pre>		return services;<br>	}<br>}</pre><p>This approach is not perfect, and there are two important things to note here. Firstly, whenever dependencies are replaced with mocks you are limiting the scope that the tests can cover. Ideally, you should look to replace dependencies with in-memory implementations of dependencies rather than mocks. For example, if you are using Entity Framework Core then you can use the <a href="https://docs.microsoft.com/en-us/ef/core/providers/in-memory/">in-memory database provider</a> in place of your usual provider. This allows you to cover much of the database interactions at this level than a mock would allow since you are still interacting with a ‘real’ database. In my case, I am forced to mock out my IPipelineRepository because it wraps a mongo database which doesn&#39;t have (at the time of writing) an equivalent to this. Unfortunately this means that a lot of database interactions that I would love to test at this level (like the QueryBuilder s) can not be tested at this level of the testing triangle.</p><p>Secondly, we need to be careful to reduce the amount of work that is done in the override methods, so steer clear of broad methods such as protected abstract IServiceCollection ConfigureDependencies(IServiceCollection services) instead favouring many smaller methods for each dependency that you are trying to replace. Because the override methods implemented in the Startup class are not covered by the tests it can be easy to forget/misconfigure dependencies in the real methods and be lulled into a false sense of security that these tests can provide.</p><p>All of this goes to say that, while these tests are extremely valuable, they can not replace full end-to-end integration tests. Hopefully, you can drastically reduce the number of more expensive integration tests that you need to run, especially since these tests allow you to easily manufacture scenarios that may not otherwise we easy to replicate with real dependencies.</p><h3>Other Applications</h3><p>In cases where you can’t host your application in an ASP.Net in-memory test server, you have to get a little more creative. In my case, I also have ‘ <a href="https://masstransit-project.com/MassTransit/">MassTransit</a>’ consumers which also use Startup style classes to initialise the IBusControl. However, since these consumers are hosted in Service Fabric ICommunicationListeners, I am not able to load them into a TestServer like I did before. Fortunately, all we really have to do here is make it possible to override MassTransit&#39;s transportation layer on top of the third-party dependencies.</p><pre>public class Startup : StartupBase<br>{<br>    public Startup()<br>    {<br>        var connectionString = this.Configuration<br>            .GetSection(&quot;Persistence&quot;)<br>            .GetValue&lt;string&gt;(&quot;SagaDatabase&quot;);</pre><pre>var mongoUrl = new MongoUrl(connectionString);<br>        var mongoSettings = MongoClientSettings.FromUrl(mongoUrl);</pre><pre>this.sagaDatabase = new MongoClient(mongoSettings)<br>            .GetDatabase(&quot;Pipeline&quot;);<br>    }</pre><pre>protected override ISagaRepository&lt;PipelineSaga&gt; PipelineSagaDatabase =&gt;<br>            new MongoDbSagaRepository&lt;PipelineSaga&gt;(<br>                this.sagaDatabase,<br>                new MongoDbSagaConsumeContextFactory(),<br>                nameof(PipelineSaga));</pre><pre>protected override IBusControl <br>        ConfigureMassTransit(IServiceCollection services)<br>    {<br>        var messageBusSettings = this.Configuration.GetSection(&quot;ServiceBus&quot;);</pre><pre>return Bus.Factory.CreateUsingAzureServiceBus(cfg =&gt;<br>        {<br>            var host = cfg.Host(<br>                messageBusSettings.GetValue&lt;string&gt;(&quot;ConnectionString&quot;),<br>                config =&gt; { });</pre><pre>cfg.ReceiveEndpoint(<br>                host,<br>                this.RecieveEndpointQueue,<br>                ec =&gt; this.ConfigureRecieveEndpoint(<br>                    ec,<br>                    services.BuildServiceProvider()));<br>        });<br>    }</pre><pre>protected override IServiceCollection<br>        ConfigurePipelineRepository(IServiceCollection services)<br>    {<br>        var connectionString = this.Configuration<br>            .GetSection(&quot;Persistence&quot;)<br>            .GetValue&lt;string&gt;(&quot;PipelineRepository&quot;);<br>        <br>        var mongoUrl = new MongoUrl(connectionString);<br>        var mongoSettings = MongoClientSettings.FromUrl(mongoUrl);</pre><pre>services.AddSingleton&lt;IMongoClient&gt;(new MongoClient(mongoSettings));<br>        services.AddSingleton&lt;IPipelineRepository, PipelineRepository&gt;();</pre><pre>return services;<br>    }<br>}</pre><pre>public abstract class StartupBase<br>{<br>    protected IConfiguration Configuration { get; }</pre><pre>protected string RecieveEndpointQueue =&gt;<br>        &quot;Varealis.RadSpider.Services.Pipeline.Consumer&quot;;</pre><pre>protected abstract ISagaRepository&lt;PipelineSaga&gt; PipelineSagaDatabase { get; }</pre><pre>// A lot of this method has been removed to maintain brevity<br>    public void ConfigureServices(IServiceCollection services)<br>    {<br>        this.ConfigurePipelineRepository(services);<br>        services.AddSingleton&lt;PipelineConsumer&gt;();</pre><pre>services.AddSingleton(_ =&gt; this.ConfigureMassTransit(services));<br>        services.AddSingleton&lt;IPublishEndpoint&gt;(provider =&gt;<br>            provider.GetRequiredService&lt;IBusControl&gt;());<br>    }</pre><pre>protected void ConfigureRecieveEndpoint(<br>        IReceiveEndpointConfigurator recieveConfig,<br>        IServiceProvider serviceProvider)<br>    {<br>        recieveConfig.Consumer(() =&gt; serviceProvider.GetRequiredService&lt;PipelineConsumer&gt;());<br>        recieveConfig.Saga(this.PipelineSagaDatabase);<br>    }</pre><pre>protected abstract IServiceCollection <br>        ConfigurePipelineRepository(IServiceCollection services);</pre><pre>protected abstract IBusControl <br>        ConfigureMassTransit(IServiceCollection services);<br>}</pre><p>From this point, all I have to do is create a special MockStartup class that extends BaseStartup and implements all of the abstract methods. However, in place of CreateUsingAzureServiceBus I&#39;m going to use CreateUsingInMemory. This tells MassTransit to use MassTransit&#39;s <a href="https://masstransit-project.com/MassTransit/usage/transports.html#in-memory-transport">In-Memory</a> transportation layer, which means I&#39;m able to run the consumer without having a dependency on a service bus like RabbitMQ and Azure Service Bus.</p><pre>public class MockStartup : StartupBase<br>{<br>    private readonly InMemorySagaRepository&lt;PipelineSaga&gt; pipelineSagaDatabase;</pre><pre>public MockStartup(InMemorySagaRepository&lt;PipelineSaga&gt; pipelineSagaDatabase)<br>    {<br>        this.pipelineSagaDatabase = pipelineSagaDatabase;<br>    }</pre><pre>protected override ISagaRepository&lt;PipelineSaga&gt; PipelineSagaDatabase =&gt;<br>        this.pipelineSagaDatabase;</pre><pre>protected override IBusControl<br>        ConfigureMassTransit(IServiceCollection services)<br>    {<br>        return Bus.Factory.CreateUsingInMemory(cfg =&gt;<br>        {<br>            cfg.ReceiveEndpoint(<br>                this.RecieveEndpointQueue, <br>                ec =&gt; this.ConfigureRecieveEndpoint(<br>                    ec,<br>                    services.BuildServiceProvider()));<br>        });<br>    }</pre><pre>protected override IServiceCollection<br>        ConfigurePipelineRepository(IServiceCollection services)<br>    {<br>        services.AddSingleton(_ =&gt; Substitute.For&lt;IPipelineService&gt;());<br>        return services;<br>    }<br>}</pre><h3>Happy Testing</h3><p>I hope that these two examples can help you experiment with this approach to testing since I’ve found it invaluable when it comes to testing microservices. For one of my microservices, at the time of writing, I have 388 unit tests which can be run in 2.61 seconds and then a further 92 acceptance tests that can be run in 6.39 seconds. These acceptance tests have enabled me to catch a number of bugs with how the code was integrated, bugs that are very difficult to find with unit tests alone. Not bad considering all 480 tests can be run in 7 seconds when running in parallel, and that these tests can be run anywhere.</p><p><em>Originally published at </em><a href="https://www.varealis.com/Blog/isolated-acceptance-tests"><em>https://www.varealis.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf60d4fde146" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing Your Testing Triangle]]></title>
            <link>https://medium.com/@varealis/testing-your-testing-triangle-5a3f8b1df8f3?source=rss-6f381206e68------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a3f8b1df8f3</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Varealis]]></dc:creator>
            <pubDate>Thu, 29 Aug 2019 13:01:12 GMT</pubDate>
            <atom:updated>2019-08-29T13:01:12.534Z</atom:updated>
            <content:encoded><![CDATA[<p>How many of us are familiar with the ‘testing triangle’? And yet how many of us have something that looks completely different? This usually isn’t due to ignorance since even the most well-intentioned teams can wake up one morning to a triangle that looks a little unbalanced. I’ve seen triangles that look top-heavy, ones that miss entire levels and countless testing trapeziums. I want to address what I see as the main reasons that this divergence occurs and offer ideas that should help mitigate these problems.</p><h3>Levels of Testing</h3><p>The Testing Triangle often has 3 or 4 different levels, but often the boundaries between the different levels can get a little hazy. Not only that but different stakeholders (developers, testers and product owners) can have different definitions for each level. So to set out my stall, here are the most common levels/definitions for the standard triangle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CjmX783qnKTtaUZFrWqaQQ.png" /></figure><h3>Basic Reasons for the Triangle failure</h3><p>If we are being honest, <em>your</em> triangle probably doesn’t look like the triangle above. When these differences occur it is usually because the maintenance of testing gets de-prioritised. Unfortunately, testing is widely considered to be a corner that can be cut to save time. Also since the ‘structural stability of our testing triangle’ is not a metric that many businesses monitor it can also be something that is easily forgotten until it is too late.</p><p>This is because the benefits of testing are hypothetical. In the same way that it is difficult to measure how many road accidents are prevented by enforcing a minimum level of thread on a tire, it is difficult to measure the value of testing. While it is difficult to put a figure on how much ‘confidence’ is worth, it is all too easy to think of an instance where something has to be delayed because testing hasn’t been completed, or when it takes longer to test a feature then it does to develop a feature.</p><p>Because of this, as deadlines approach and as the desire to develop and deliver features as quickly as possible rises, companies start to ignore all of the benefits of a robust testing process. Project managers start asking if we are spending too long testing, or if we can go without testing at a certain level.</p><p>Developers and testers also struggle in interactions when being questioned about the advantages of the different levels of testing. When questioned “Can we cut out Integration and Acceptance tests and cover all of that with End-To-End tests and Unit Tests?” it is very difficult to answer ‘No’. Technically, you can cover everything you need to cover with just the two extremes of the triangle, but should you? It <em>could</em> be argued that this method is (at least in the short term) more cost-effective, but I prefer to imagine that cost saving as a loan that you now have to pay interest on. By reducing test performance, making tests harder to write/maintain and making it harder to resolve issues when they are found — that up-front cost has been converted into a cost that is added onto every new feature/bug fix that is developed.</p><h3>My Triangle</h3><p>My triangle doesn’t look like the triangle above either, but deliberately. I think the main reason that our testing triangles start to diverge from ‘ideal’ is that the classical triangle just isn’t ideal anymore. I think that this triangle is a hangover from the monolithic approach to software development and that it needs to be re-imagined.</p><p>The triangle that I have developed at Varealis is mostly the same but it has been restructured to better support a micro-service platform that is focused on the continuous deployment of individual, independent services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6WeTKtJGtFSlHIFGO-Rzbg.png" /></figure><p>The biggest change to this triangle is the introduction of <a href="https://docs.pact.io/">Pact Tests</a>, which help us redefine the responsibilities of the other layers in the triangle, allowing for Integration and Acceptance tests to be swapped. Pact Tests are focused on a service/application’s contracts. They are designed to ensure that services implement their public interfaces and therefore that services can cooperate expectedly. Pact Tests are probably interesting enough to write an entire blog post about, to be honest.</p><p>By covering inter-service communication with Pact Tests, we no longer have to rely on more brittle integration (or End-to-End tests) here. This means we can narrow the scope of integration tests to only cover the integration of an individual micro-service and it’s other dependencies (I.e. databases, message buses or third-party APIs).</p><p>By moving Acceptance tests down below the Integration tests we can exclude third-party dependencies and isolate the business logic as implemented by the service. At this level we can control our service’s dependencies, swapping them out with mocks or In-Memory implementations (for example MassTransit’s InMemory Message Bus or Entity Framework’s InMemory database). Not only does this drastically improve the speed of the tests, but it also means they can be run in more places, cover scenarios that are otherwise hard to replicate in a real environment and cover integrations that unit tests are not able to cover. In another blog post, I’ll go into further detail and show you how easily this can be achieved.</p><h3>Our Goal</h3><p>Testing is something that I, and by extension Varealis, value highly. We are constantly striving to improve our best practices and we want to share our progress whenever possible.</p><p><em>Originally published at </em><a href="https://varealis.com/Blog/testing-your-triangle"><em>https://varealis.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a3f8b1df8f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Going Full Time]]></title>
            <link>https://medium.com/@varealis/going-full-time-84a4c6343094?source=rss-6f381206e68------2</link>
            <guid isPermaLink="false">https://medium.com/p/84a4c6343094</guid>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[entrepreneur]]></category>
            <dc:creator><![CDATA[Varealis]]></dc:creator>
            <pubDate>Thu, 15 Aug 2019 12:00:16 GMT</pubDate>
            <atom:updated>2019-08-15T12:00:16.691Z</atom:updated>
            <content:encoded><![CDATA[<p>An exciting new chapter in Varealis’ story starts today, today is my first day working at Varealis full-time. I’ve been working for Varealis (and before Varealis was founded — RadSpider) part-time for the past 5 years, so this is something I’ve been working up to for a very long time.</p><p>Late 2018 I decided that 2019 was going to be the year that I devoted everything I had to Varealis — so I soft-launched this website, started offering contracted Code Reviews as a Service and started stockpiling resources. And now I am finally ready to double down and throw everything I have into making sure Varealis can be the revolutionary force that I know it can be.</p><p>And so I am happy to announce that I have upgraded the free trial of Code Reviews as a Service to better reflect the service that you’ll receive as part of the Comprehensive tier. I have also added the ability to purchase Code Reviews on a Pay as you Go basis. Click here to learn more about <a href="https://varealis.com/Services/CodeReviews/Pricing">Code Reviews as a Service</a>.</p><p>Behind the scenes, I will be devoting everything I have to fore-filling Varealis’ company mission of empowering developers with the tools and knowledge that they need to build quality products with quality code. As part of this we will:</p><ol><li>Build a team of uniquely talented and committed people.</li><li>Continue to finesse and improve Code Reviews as a Service.</li><li>Forge forward with the development of RadSpider — gearing up for release in 2020.</li></ol><p>I also intend to start sharing some of the technology that we are developing at Varealis. We are regularly solving complex technical challenges and we want to be able to share the lessons that we have learned and (where appropriate) some of the software that we have developed to solve these problems.</p><p>It’s going to be an exciting, but tough, journey. I’ve been chomping at the bit to get stuck in, and I can’t wait to share that journey with you.</p><p><em>Originally published at </em><a href="https://www.varealis.com/Blog/going-full-time"><em>https://www.varealis.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84a4c6343094" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Code Reviews — A Bad First Impression]]></title>
            <link>https://medium.com/@varealis/code-reviews-a-bad-first-impression-d76974b73a09?source=rss-6f381206e68------2</link>
            <guid isPermaLink="false">https://medium.com/p/d76974b73a09</guid>
            <category><![CDATA[story-time]]></category>
            <category><![CDATA[peer-review]]></category>
            <category><![CDATA[pull-request]]></category>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Varealis]]></dc:creator>
            <pubDate>Thu, 28 Feb 2019 20:41:23 GMT</pubDate>
            <atom:updated>2019-02-28T20:41:23.832Z</atom:updated>
            <content:encoded><![CDATA[<h3>Code Reviews — A Bad First Impression</h3><p>If I had to describe how my first ever Code Review felt… I’d probably have to call it <em>crushing</em>. Not only was it my first Code Review, but it was also my first serious, unassisted contribution a code base that a) wasn’t my own and b) was outside of education. It played a key role in shaping me into the developer I am today but most importantly it also taught me a lot more about the value of constructive Code Reviews, eventually leading me to found Varealis so that I could offer <a href="https://www.varealis.com/services/codereviews">Code Reviews as a Service</a>.</p><h3>My First Time to Shine</h3><p>When I started my first Job as a Software Developer, I was still studying Computer Science at University and I hadn’t really appreciated the difference between the code that you threw together in order to pass some coursework vs the kind of code that you have to build, adapt and maintain over a long period of time. Initially I was still prioritising throughput rather than quality as I had assumed that management and/or my peers would respect me more as a developer if I could churn out features like it was going out of fashion.</p><p>On the run up to Christmas I was working in a small team that consisted of myself, one Senior Developer, one manual tester and one automation tester. I was new to the team, and with a grand total of around 3 months of industry experience under my belt, I was eager to prove myself to be more than the average student developer. When the Senior Developer was due to take a week of annual leave, the team wasn’t expecting to get a lot of work done, and so I saw my first true opportunity to prove myself. Up until this point I was mostly pair-programming, and I was starting to feel like it was holding me back, so I was eager to prove that I could stand on my own feet.</p><p>Early in the week I managed to finish off the work that we had originally started as a pair (a REST API for a Postcode Lookup Service that allowed you to search with a partially complete Postcode). After this I immediately jumped onto the next story which consisted of formatting addresses into a Royal Mail compliant format (for anyone who has ever tried to map out and understand the Royal Mail’s formatting rules for Address Line 1, 2 and 3 you know how complicated it can get). The team had only committed to completing the REST API this sprint and so I was exceptionally proud of myself as I finished off the address formatting feature with enough time to get it through code review and test before the end of the sprint.</p><p>On the Senior Developer’s first day back from holiday, I submitted the feature for a Code Review and to got the testers in a position where they were ready to test the feature once it had passed the review. They didn’t see my work that day though. Actually they didn’t even see it until partway through the next sprint because after the review it was decided that all of my hard work would effectively have to be ripped up and started again.</p><p>I remember walking home that day, feeling crushed. For a long time I felt resentment towards that Senior Developer, firstly because I didn’t understand why it was that my code (that worked) wasn’t good enough, but I also felt like I had been publicly discredited after I’d told the team the code was ready for test and yet it was going to take another week before they could get eyes on it!</p><p>As I matured as a developer I became to understand and appreciate why my initial solution could have done with some extra work and how prioritising code quality over speed in the Code Review pays dividends when it came to maintaining/extending the code in the future. But most importantly I also started to appreciate how effective Code Reviews are at educating/training others… if done correctly.</p><h3>Reviewing the Review</h3><p>While I do consider this one of the key moments that really started to shape me into the developer that I am today, looking back I do think it should have been done differently. And whenever I’m code reviewing today I’m always thinking back to this time as I try to ensure that I can have the right positive effects without all of the negative emotions.</p><p>Firstly, there wasn’t enough communication. I was left filling in the blanks about why it was that the code I delivered wasn’t good enough and I didn’t truly understand how it was that the new code was better. Naturally this had a negative effect on moral and our team dynamics for a short period of time but it could lead to larger, more permanent rifts in teams. A lot of developers have had experiences like this and many of them will use these experiences to conclude that code reviews don’t work (or are more trouble than they are worth at least). However with good communication and by treating the review as an opportunity to share expertise and knowledge it doesn’t have to be this way. We shouldn’t treat Code Reviews like a prisoner coming to shake down a cell, but like a teacher/parent helping you through your homework — because even the best writers in the world have editors!</p><p>Secondly, the lack of communication gave the impression that Code Reviews are a one way street. Had there been a dialog about the code under review there may have been an opportunity for the reviewer to learn something from the review. Nobody knows everything and not everyone is perfect. If two people have differing opinions it doesn’t necessarily mean that the most experienced is correct or even that there is one prevailing “better” opinion. As developers we all have different experiences and where possible we should try to collaborate in order to find the most optimal solution in a world of subjective “it depends” answers — not only will it mean building better products but we will also become better developers and better teams.</p><p>Finally, and more nuanced, is that maybe the best option wasn’t to rewrite/re-architecture the code under review quite so much. Maybe the more optimal way to go would be to make some minor changes and then iterate over the code base later. Sometimes over-engineering a solution can be many times worse than a simple solution since it can lead to obfuscating the intent/meaning of the code (and hence raising the barrier to entry) without adding any real value since it could be attempting to accommodate requirements that may never come. It is also possible that the team’s resources could be better utalised if features are released to testers and stakeholders sooner rather than later (especially in cases where the code is delivering a large or particularly complicated feature). At the end of the day, if the code doesn’t meet the acceptance criteria or the stakeholders expectations then it doesn’t matter how clean the code is underneath. In an agile working environment there is no harm in being agile about your code reviews too. That being said, this has to be considered on a case-by-case basis because it can be trivial to end up with a messy code base and a backlog filled with unnecessary technical debt items that realistically will never get prioritised.</p><h3>Introducing CRaaS</h3><p>I wholeheartedly believe that Code Reviews are an essential part of Software Development. However, if they aren’t implemented correctly then they can become frustrating, counter-productive and have a negative impact on teams and the individuals within them. At Varealis, with Code Reviews as a Service we are aiming do the opposite of this while keeping all of the benefits of the Reviews. That’s because we are not just focused on the code under review, but also on the developers producing the code. Most people who have negative things to say about Code Reviews have had experiences like mine, and we want to put a stop to that.</p><p>The service we provide puts the developer at the heart of the Code Review. The whole experience is more about education and training then it is about ruling coding standards with an iron fist. The more we can do to encourage developers to feel comfortable collaborating with others, and using code reviews as a vehicle for discussion and learning, the better. They will learn quicker, feel better and produce better code. And I will sleep better at night knowing that fewer people are walking home crushed by their code reviews like I was.</p><p><em>Originally published at </em><a href="https://varealis.com/Blog/my-first-code-review"><em>varealis.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d76974b73a09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Varealis]]></title>
            <link>https://medium.com/@varealis/introducing-varealis-a774a07a6610?source=rss-6f381206e68------2</link>
            <guid isPermaLink="false">https://medium.com/p/a774a07a6610</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[code-review]]></category>
            <dc:creator><![CDATA[Varealis]]></dc:creator>
            <pubDate>Fri, 22 Feb 2019 17:31:01 GMT</pubDate>
            <atom:updated>2019-02-22T17:31:01.290Z</atom:updated>
            <content:encoded><![CDATA[<p>Since 2014, I have had my sights set on the development of a uniquely innovative software platform that will revolutionise CI/CD pipelines, empowering them to supply confidence that is impossible to reach without manual intervention of exceptionally talented engineers and data analysts. During the last five years, <em>RadSpider</em> has been improved and optimised until it became clear it could become a PaaS offering. I also realised that using the skills and expertise I had developed over the years, I had much more than just <em>RadSpider</em> to offer the world. That was when I founded <em>Varealis</em>.</p><p>Before I get ahead of myself: Hi. I’m Jamie, a Software Engineer turned Entrepreneur based in Bristol, United Kingdom. I got my Computer Science Degree from the University of Bath and since then have been working a Full-Stack DevOps Developer. During my career I have been in a lot of challenging roles, I have architected software platforms and the teams and processes required in order to deliver them. I have never been the kind of person to sit back and ride the current — which is why I took on <em>RadSpider</em> in the first place knowing it would be a massive project that would take a lot of time and energy to complete.</p><p>A small part of me feels apprehensive introducing <em>Varealis</em> and <em>RadSpider</em> formally to you for the first time. I have never cooked a turkey before, but this must be what it feels like to watch someone poised to cut the first slice of the turkey that you have slaved over all day. Everyone is watching, cutlery in hand, hoping that it won’t turn out to be an oversized, over-hyped, dry chicken. Thankfully, I think I have something much more exciting then a chicken, or a turkey for that matter.</p><h3>RadSpider</h3><p><em>RadSpider</em> predates the creation of <em>Varealis</em> by about 3 or 4 years. It was an idea I first had during my placement year, and is something I pursued as part of my dissertation and have been working on ever since. <em>RadSpider</em> was first developed as a proof of concept and then iterated upon using market research from some of the South West’s most prominent software development companies until it was clear that in order to succeed it had to become a PaaS offering in the cloud which I started in mid 2017.</p><p>I believe that <em>RadSpider</em> will become the next big thing in Software Development and will become as well known as other CI/CD services such as Octopus Deploy, Jenkins or Azure DevOps. I am also aware of the huge amount of development that needs to be done in order to get to that point. I also realised that if <em>RadSpider</em> was to grow and keep pace with the industry as a whole, it would need something bigger than just me supporting it. If only I could find a way to bundle <em>RadSpider</em> and some of the other things I’m passionate about under one cohesive roof…</p><h3>Varealis</h3><p><em>Varealis</em> (pronounced Var-ee-al-is) was first created in late 2017 but the company was officially founded in late 2018. The name was formed from <em>Variable</em> and <em>Borealis</em> from the <em>Aurora Borealis</em> (or northern lights). <em>Varealis</em> is built upon the core belief that quality code leads to quality products, and by practicing what we preach, we intend to offer a collection of quality products and services that give developers the tools that they need to do what they do best.</p><p>This belief is a key driver in the development of <em>RadSpider</em> and our first service offering <a href="https://varealis.com/Services/CodeReviews"><em>Code Reviews as a Service</em></a>. I believe that both are (or will be) uniquely capable at delivering a means not only monitoring code quality but also ensuring that it is either maintained or improved over time. Alongside these two initial offerings, we will also be using <em>Varealis</em> to help share knowledge and experience with the broader Software Development Community. We will be doing this primarily from this technical blog, but we also have ambitions to speak at conferences and meetups in the local area.</p><p>As developers we regularly come across and solve problems that others will inevitably have to face — and we hope that by sharing our solutions for others to use we can become a trustworthy and dependable member of the development community. This will include everything from code packages (via GitHub or package management systems like Nuget) to technical ‘How-to’ style blogs. We will be slowly adding more features to this blog in order to better support conversation and collaborative learning.</p><p>So that’s who we are and what we are striving for. I hope that shines some light on what it is we are doing and why it is we are doing it. If you have any questions, thoughts or suggestions then please do reach out via the <a href="https://varealis.com/Contact">site</a> or via <a href="https://twitter.com/JamiePed">Twitter</a>.</p><p><em>Originally published at </em><a href="https://varealis.com/Blog/1a6b4ee8-4269-4f71-8a7c-5e8425afd8d2"><em>varealis.com</em></a><em> by </em><a href="http://www.twitter.com/JamiePed"><em>Jamie Peacock</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a774a07a6610" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>