Automation

TypeSpec Compared To SpecFlow

Posted on

Updated: It is no longer mandatory to enclose parameters with quotes – which makes things even more similar between C#/SpecFlow and TypeScript/TypeSpec. On with the original article… Updated: TypeScript’s decorator feature makes things even more similar! This isn’t a “framework a” vs “framework b” post. When performing BDD, if you are using C#, you’ll be […]

Automation

Custom Output From TypeSpec

Posted on

In TypeSpec, events are raised during a test run that can be intercepted by a test reporter. TypeSpec has a built-in test reporter that logs a whole bunch of information to the console. It also has a test reporter for TAP output. When these options don’t offer what you need, you can write your own […]

Automation

Getting TAP Output From TypeSpec

Posted on

If you want to get your TypeSpec test output in TAP (Test Anything Protocol) format, there is a built-in test reporter that will do this for you. Just pass in the TapReporter to the auto runner: import {AutoRunner, TapReporter} from ‘./Scripts/TypeSpec/TypeSpec’; AutoRunner.testReporter = new TapReporter(); You’ll now get TAP compliant output that can easily be […]

Programming

Introducing TypeSpec

Posted on

Having completed the MVP roadmap, TypeSpec is now available to use. TypeSpec is a BDD framework for TypeScript designed to work with separate specifications written in the Given-When-Then style. It works in the browser (real or ghost), and on Node. You can grab it from NuGet: PM> Install-Package TypeSpec You can grap it from NPM: […]