Coder Social home page Coder Social logo

haxe-testing's Introduction

Tool for non-functional testing of Haxe code generators

Latest docker image: mboussaa/haxe https://hub.docker.com/r/mboussaa/haxe/

Library documentation: http://tbrosman.github.io/hxmath

What it is

A docker image for non functional testing of Haxe code generators.

Case study

Hxmath library

http://tbrosman.github.io/hxmath

A 2D/3D math library for Haxe implemented using abstracts for maximum compatibility with existing libraries (specifically OpenFL).

Target platforms

-Java

-C++

-C#

-Nodejs

-PHP

-Flash

-AS3

...

Performance properties

-Execution time

-Compilation time

-Memory usage

-CPU time

...

Performance properties

-google/cadvisor:0.19.3

-tatum/influxdb:0.8.8

-docker version 1.6

How to use

Method 1

1- install docker version 1.6

2- git clone https://github.com/mboussaa/haxe-testing.git /shared

3- cd /shared/

4- you can compile and run each benchmark program to a specific platform For example:

haxe test_cpp.hxml

This will compile to cpp target and run binaries. You can compile to other targerts using test_js or test_java etc...


Method 2

1- If you want to compile all test suites and haxe libraries to different target platforms.

For that, we have prepared a compilation script. Thus, you have to run the following command:

docker run -it --rm -w /shared/ -v /shared:/shared --name=haxe mboussaa/haxe /bin/bash -c "./compileAll.sh"

2- Time to run some test cases to specific target platform

docker run -w /shared/hxmath -it --rm -v /shared:/shared --name=haxe_run mboussaa/haxe /bin/bash -c "./run_java.sh 1"

In this example, we compile test suite number 1 with java target. Available testsuites range from 1 to 9. you can modify the target by using for example run_js.sh or run_cs.sh


Method 3 (recommended)

1 - To build automatically and run all tests use:

./build.sh

This will compile all programs and run all tests. If you use this method you don't have to execute instructions descibed above.

TODO

-Automatic test data generation

-set monitoring components for haxe

-gather non-functional properties

...

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.