Skip to content

servirtium/servirtium-dart

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Main Servirtium site: http://servirtium.dev

A Servirtium library for Dart

Servirtium == Service Virtualized HTTP (for Java) in a record/playback style, with plain Markdown recordings

Utilization of "Service Virtualization" is best practice towards fast and consistent test automation. This tech should be used in conjunction with JUnit/TestNG, etc. Versus alternate technologies, Servirtium utilizes Markdown for recorded HTTP conversations, which aids readability allows for diffing to quickly determine if contracts are broken. That last is an important aspect when Service Virtualization is part of a Technology Compatibility Kit

Usage

Add Servirtium to your pubspec.yaml

dependencies:
 servirtium:
   git:
     url: https://github.com/servirtium/servirtium-dart.git
     path: servirtium

Import

import 'package:servirtium/servirtium.dart';

Playback of previously recorded interactions

# TODO

Recording interactions

# TODO

Installing Dart

brew tap dart-lang/dart
brew install dart

Usage

Add servirtium to your pubspec.yaml

dependencies:
 servirtium:
   git:
     url: https://github.com/servirtium/servirtium-dart.git
     path: servirtium

Import and start using

import 'package:servirtium/servirtium.dart';

Running the example

cd example
pub get 
pub run test --reporter expanded --concurrency=1

Further reading

For complete dart example see our World Bank ClimateAPI demo project.

There is also example in the project too.