samedi 24 septembre 2016

How to test Dart's package made for both client and server side?

I'm making a library that provides both client & server side code. When making the tests, I would like to test the interactions from both sides.

So far I have at least this tests:

Server side:

@TestOn("vm")
import "package:test/test.dart";
import "dart:io";
//...
void main() {
    HttpServer server = HttpServer.bind(InternetAddress.LOOPBACK_IP_V4, 4040)
    //.then()...

Cliente side:

@TestOn("content-shell")
import "package:test/test.dart";
import "dart:html";
//...
void main(){
    //Interact with server at 4040

What should I do to have all the tests ran with a single command? Is it possible?

Aucun commentaire:

Enregistrer un commentaire