GithubHelp home page GithubHelp logo

alvaromongon / microsoft.extensions.configuration.mstestcontext Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 13 KB

Ms test context configuration provider for Microsft extensions configuration

License: MIT License

C# 100.00%
microsoft-extensions-configuration provider mstest

microsoft.extensions.configuration.mstestcontext's Introduction

Build Status

Introduction

Implementation of a MsTestContext configuration provider for Microsft extensions configuration

If you are using MsTests with runsettings files in your test projects, It is nice to load the settings into the Microsoft extensions configuration abstractions. So you can get the configuration from IConfiguration.

Getting Started

  • Install the package in your test project
  • Create the runsettings file
  • Select the runsettings file as your tests settings file in the test explorer windows (VS2019)
  • Create the configuration root object loading data from the test context: ".AddMsTestContext(context)""
  • Use the configuration interface

Build and Test

I was using VS2019 to build the solution and there are some tests to show how could be used. So you can run the tests locally and follow the code. Just remember to select you tests settings file.

microsoft.extensions.configuration.mstestcontext's People

Contributors

alvaromongon avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.