Dear Community,
I’m decided to test Haxe 4 in my working project. I work with agility and BDD (Behaviour Driven Development) mostly in acceptance testing level.
I haven’t found a library for Specification By Example (like behave in python, JBehave in Java, SpecFlow in C#, Cucumber,…). I found buddy library, it’s a first step better than nothing, but it isn’t enough for me for many reasons that I won’t explain here. It will perhaps be one of my later stuff.
Firstly, I’m looking for a testing library enabling to do BDD. I mean coding the behaviour test, and run it, before coding the tested code. I found hxtf, it looks very nice for BDD in unit test context, but not for BDD in acceptance test context. I explain my point of vue in following examples.
Consider I write a CLI in Haxe, available in many target languages (ex: C++, Python, Java, C#), with some input arguments and output result in a file. In an acceptance point of view, it’s interesting to write black box acceptance tests. Consider that the tests are in a separate project (the “testing project”), that tests the CLI projet (the SUT, System Under Test), so that the testing project can be compiled and run in a target language, and SUT can be in another target language. Tests will run SUT in a separate process, with different arguments, and then verify the result file content.
Another example could be a GUI application, tested by UI (ex: a web application, tested with Selenium+others).
In all cases, the “testing project” can be written for only one target, whereas SUT is really written for all target languages. This is a topic that concerns any Haxe project, when considering acceptance tests, for BDD or simply validation.
Do you know any Haxe library that helps to do this kind of work ?
Probably you know Haxe libraries that do such stuff, but haven’t externalized it in a separate library ?