JSLINQ icon indicating copy to clipboard operation
JSLINQ copied to clipboard

better unit tests and A/B performance testing / benchmarking

Open Marak opened this issue 15 years ago • 2 comments

we need to have better unit test coverage, the current unit tests are embedded in the sampleData.js file and are called from tests.html

we need server-side node thats that have the ability to run A/B speed tests of JSLINQ operations on large datasets. these tests should also work on the client.

Marak avatar May 05 '10 15:05 Marak

am happy to have a crack at writing a console-based test suite. is there a preferred test library?

jaz303 avatar May 06 '10 20:05 jaz303

are you familiar with using node.js at all?

node has a built in assert module, i think we might want to build our own suite based on that module? here's an example: http://github.com/kriszyp/perstore/blob/master/tests/query.js

there are also other frameworks like jSpec and qUnit.

i think putting together a simple proof of concept using just the assert module should be simple. im not 100% on how to implement the timing stuff, but i think we can do something with getTime().

Marak avatar May 06 '10 20:05 Marak