09-04-2014 03:25 AM
Hi Guys,
This is a bit of a fluffy topic but I'm curious to put it out as a thought.
I went to a talk yesterday on unit testing JavaScript code. One of the key values behind the top tools there is that it is written as a behaviour driven syntax. The idea being that non-developers can easily help define tests and understand what the tests do. An example is the Jasmine framework:
describe("The password module", function() {
it("should require a minimum length", function() {
expect(true).toBe(true); //Assertions here
});
});
This echoes something I heard from a few agile development sources that says that the acceptance criteria for a user story should be writable by the customer/product owner and be directly automatable from this.
What I'm trying to think about is how this applies to LabVIEW. Part of me things that a text parser is an easier way to enter tests in this format, but then the point of LabVIEW is that it is signifcantly easier for non-developers to read anyway.
What do people think about this? are there existing frameworks that can already meet this style of testing?
09-04-2014 02:32 PM
From a .NET point of view:
While I think it is possible to make strides towards more readble, adaptable and flexible test code in LabVIEW, my gut feel is that it is difficult to provide this without some form of generics.
09-05-2014 03:07 AM