GithubHelp home page GithubHelp logo

matneyx / specflowocarambaboilerplate Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 60 KB

Boilerplate for test solution using SpecFlow, Ocaramba, NUnit, Autfac, and Shouldly

C# 95.59% Gherkin 4.41%
csharp specflow specflow-bdd nunit autofac e2e-tests e2e-testing integration-testing integration-tests gherkin

specflowocarambaboilerplate's Introduction

SpecFlow / Ocaramba / NUnit / Autofac Boilerplate

What?

This is a .Net / Visual Studio project intended to get you up and running with Selenium WebDriver End-To-End (E2E) tests without the hassle of getting all the components working together.

It leverages SpecFlow, Ocaramba, and NUnit for easy Behavior Driven Development (BDD) testing, and Autofac for IoC / Dependency Injection.

Who?

This is intended for software developers who want to write automated E2E tests, as well as software testers who are interested in trying their hand at test automation.

Why?

At my work, I had to spin up a new integration test project that worked entirely within Visual Studio, and it took me much longer than I’d expected. That kind of setup could dissuade testers from testing, and I didn’t want that to happen.

How?

Extensions

For best results, I recommend the following VS plugins:

Installation

The easiest way to install this is to download the zipped up version and drop it in your existing repo.

If you want your integration tests to be its own repository, do the following:

git clone –depth 1 https://github.com/matneyx/SpecFlowOcarambaBoilerplate.git <YourRepoName>

Then delete the .git folder within the new SpecFlowOcarambaBoilerplate folder.

Once you’ve done that, rename all instances of SpecFlowOcarambaBoilerplate with whatever you’ve named your repo (I’d just do a Find and Replace inside Visual Studio Code), as well as renaming the folder and solution / project. Test to make sure the demo test runs, and make corrections where necessary.

Finally, git init and link the new remote to wherever you want it.

Where to start?

Build the project. You may have to do some nuget finagling for it to build, but everything is available in the default nuget source.

Open your Test Explorer and you should see the ICanSearchForThings test. Run that – it should open a new window, go to Google, search for Wikipedia, and then close.

If all of that works, you’re ready to build your first test.

Building your own tests

TODO

specflowocarambaboilerplate's People

Contributors

matneyx avatar

Stargazers

 avatar

Watchers

 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.