Giter Site home page Giter Site logo

vscode-tsqlt-test-adapter's Introduction

tSQLt Test Explorer for Visual Studio Code

logo

This extension enables you to run tSQLt unit tests from Visual Studio Code with the Test Explorer UI.

feature_discover_run

Getting started

  • Install the extension.
  • Configure Visual Studio Code to connect to a database where your source code with tSQLt extension is installed. See configuration section for more details.
  • In the sidebar, open the Test View and wait for the extension to discover your tests.
  • When the tests are discovered you can run them using the play button.

Features

Inspecting test result

The result of a test run can be inspected by clicking on any given test.

feature_test_result

Requirements

To discover and running unit tests, the extension requires a running database with the tSQLt framework installed.

There are numerous posts online that describes how to setup your database project with tSQLt as a testing framework, and how to include it in your workflow.

Be aware! Never install the testing framework on a production database.

Extension Settings

This extension contributes to the following settings and are required for discovering and running tests.

"tSQLtExplorer.tedious": {
    "description": "TediousJS configuration (http://tediousjs.github.io/tedious/)",
    "type": "object",
    "default": {
        "server": "localhost",
        "options": {
            "database": "tests",
            "encrypt": true,
            "trustServerCertificate": true
        },
        "authentication": {
            "type": "default",
            "options": {
                "userName": "",
                "password": ""
            }
        }
    }
}

Known Issues

  • Missing tSQLt framework discovery, will most likely thrown an error about SQL statements failing.
  • SQL logins are the only tested authentication method.
  • Cancellation of tests that are running is currently not supported.

This is an early release of the extension. Issues can be reported here

Release Notes

0.1.0

Initial release of the extension to the public.

0.1.1

Bug fix: For stored procedures that output data, fix the parser so that the tSQLt result information is what is parsed for test results. New: The test execution summary is now in table format. It also includes the Duration (ms) of the executed test. This looks similar to the output when running a tSQLt test directly in SSMS.

vscode-tsqlt-test-adapter's People

Contributors

niktho 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.