Hi all, I'm looking at adding unit tests to a project I am working on. I had a couple of questions.
First of all, is the testRunner.py approach, as documented in slice 67, still a reasonable way to go, or has all the effort switched over to the test_runner tool in the web2py_utils package? I was initially starting with the basic slice example, as I had this running a year or two back on another little project. I'm finding that when sys.argv[2] is accessed in the sample testRunner.py file (line 33), it is only of length 1, the contents is ['testRunner.py']. I can see there's a fair bit of discussion around the use of sys.argv in this thread. I wasn't sure if something has been dropped from web2py that now means sys.argv is not populated. Or was this always relying on some other hack that copied it across? If the example on slice 67 is now out of date, I'm happy to find that out and cut over to a newer style. I couldn't see any discussion on here suggesting either way. Cheers, Eddie