are there any js testing frameworks that will run ...
# suitescript
d
are there any js testing frameworks that will run within netsuite? something to handle integration testing: generate customers -> create sales orders -> validate some output result
b
not that I know of. I've tried things like jasmine but the framework fails due to things like Errors not having a stack and not supporting setTimeout
I think netsuite tried once with an old test framework named js unity, but I think thats dead now
s
I think old
qunit
would run in a suitelet - did a successful POC years ago in SS1. These days we try to have automated testing done client side (in the IDE)
d
sometimes i'll write up some client side code and paste it into a console browser to generate some customers / orders, but then i'm limited to client side only calls
but sometimes i want to test end to end integration for a project. i've heard of xcelero, but don't know anything about it
are there any good sample netsuite unit tests on github?
b
I wouldn't say good, but NetSuite has an example in their help at
Project Sample: SuiteScript 2.0 Unit Testing
s
NFT has unit tests, but it's not quite the same as end-user developed code (but similar) https://github.com/ExploreConsulting/netsuite-fasttrack-toolkit-ss2/tree/master/test