Is there are any existing unit tests for lua Api? I've been searching for like an hour and all I found is this link - http://www.inf.puc-rio.br/~roberto/lua/lua5.1-tests.tar.gz
does somebody know some tests except this?
Unit testing is about testing your code during development, not in production. Typically you start by preparing the testing environment, writing some code that calls production code and check expected results with actual results.
http://lua-users.org/wiki/UnitTesting
Hope this helps :)
See lua-TestMore.
No, those are the only ones that exist.
Related
I came across Google Truth https://google.github.io/truth/ and thought to try it out. I read the information on that site but still have a basic question.
Is Truth a substitute for JUnit? How should I write the #test methods and test suites the way I write in JUnit and automate the test execution say through Jenkins? Or is it that Truth is just about making your assertion code beautiful and everything else stays the same?
Does Truth still needs help of JUnit framework (or something like JUnit)?
Thanks!
No, Google Truth isn't a full replacement for JUnit/TestNG. Truth is an assertion framework which allows you to write assertions more flexibly (see their Comparison page for details).
Truth however doesn't have a concept of tests/test suites/test runs/... so you'll still need a testing framework (like JUnit or TestNG) to actually execute your tests.
Has anyone has done kdb unit testing before? I have no idea how I should do unit testing. I am confused about time store unit testing as well.
I will load my script, Qunit script and test script. However, I am not sure how to write the test code for queries. What should I write for expected result?
QUnit a unit testing framework for kdb is documented here:
http://www.timestored.com/kdb-guides/kdb-regression-unit-tests
With the source code being available here:
https://github.com/timeseries/kdb/tree/master/qunit
If you have any specific questions, just ask.
The reference app distributed with MVC3 RTM is a great learning tool in that it shows a comprehensive application. but what app (these days) exist without Unit Tests? It doesn't seem possible that the team who poured so much work into providing such a beast wouldn't have employed Unit Tests as they built it. Why not make that work public?
thx
Believe it or not that's how it is. Not a single unit test :-)
does anybody have any experience writing unit tests for sql server 2000 DTS packages?
I about to start working with DTS and jobs, so I want to be able to unit test as much as possible. I guess i could invoke dtsrun.exe via command line , but perhaps someone else has better ideas.
Thanks
Fede
I came here looking for insight but since no one else has given you ideas, I did come up with one that I will share.
In my case (I know not all cases), we use a lot of ActiveX (VBScript) scripts to accomplish things. I'm theorizing (I've not tried this) that, if I move my ActiveX functionality to VBScript classes that I can unit test those classes and etc. and then do very, very basic class instantiation and usage in the main function of the ActiveX script.
I've not tried to implement this; my project does not have the budget to do so. But, in theory it seems sound. I also am unaware of any challenges this may cause.
Please see another question I posted here. The question is loosely related to yours. The answer I selected for this question doesn't fit your scenario. You'd be more interested in Michal's answer: Creating unit tests for your asp application
Saw this question had been here for a while so I'm just throwing some ideas out there...
I'm wondering if you could write some code to use the DTS API to call your packages, then write assertions about those packages in the unit test tool for whatever language you used. For example, you could write your code in C# and use NUnit.
Additionally, if your DTS packages are all just calling SQL stored procedures, you can unit test the procedures (which would be true unit testing) using T-SQL Unit.
If it's higher level (integration) tests you want, then you might also consider hooking FitNesse up to the DTS API.
Not sure if any of this helps, but I hope I've at least given you some ideas.
I would like to do some integration testing of a web service from within NUnit or MBUnit. I haven't delved into this too deeply yet, but I am pretty sure I will need to spin up WebDev.WebServer.exe within the "unit test" to do this. (I know it's not really a unit test).
Yes, I can test the underlying objects the web service uses on their own (which I am), but what I am interested in testing in this cases is that the proxies are all working and handled as expected, etc.
Any advice?
I asked the same thing (I think ...) I got a tip on SoapUI. It looks promising but I haven't had time to test it yet.
I've had lots of success doing web testing with Selenium
I've used it on Linux and Windows for automated web testing of just about anything.
There is XMLunit (http://xmlunit.sourceforge.net/), for java and Ms.NET. it's could be interesting to check it out some specifications of WS, like wsdl:type, for example!
Cheers!
Orlando Agostinho
Lisbon/Portugal
I found this post and this one which have some solutions on how to start up WebDev.WebServer.exe from within a unit test. Looks like I'll need to do something along these lines.
Until I get that going, I found that what works is to simply run the web service project within VS, let the WebDev server start up that way, and then run the unit tests. Not ideal, but it's OK for now.
Not sure what you're asking. If you're looking to do this without some sort of webserver in between your test and the service, you're going to be disappointed.
If that's not what you're asking... maybe some clarification?
You may want to give Ivonna, an addon built on top of Typemock a try.
The good part about Ivonna is that you don't need to launch webserver for your test, but downside part is that it's not free.