Hello, I'm using SimplyVbUnit 5.0.4, and I was able to see the tests and run them, but something happened I'm no longer able to see the tests even if I have many tests available. Have you an idea about that?
When the test "Assert.AreNotEqual 1, 1" is attempted the error message contains the text Expected: not 1 But was : Empty This behaviour is also seen if tests Assert.AreNotEqualFloats or Assert.AreNotEqualStrings are used. I've traced this back to EqualConstraint.Matches. mActual is only populated when mComparer.Equals(mExpected, Actual) = False. The fix is to always call "VariantCopyInd mActual, Actual" at the start of EqualConstraint.Matches. Has anyone noticed this and if so do you have a different...
Hello, Sorry, I never pursued this ability. I'm sure it can be done since the framework exposes hooks throughout the testing process. However, it isnt' something I will be looking in to.
I know it's a long time ago but did you ever work out how to do this?
Hello, I suspect you don't have the error-trapping setting in your VB IDE set correctly. Here is the wiki page describing it
When I run tests from example folder I am getting an error runtime 5 for unit test which fail and I am forced to Debug. Anyone can help on this please?
Thank you very much for your quick support. Yes, now it works as desired.
SimplyVBUnit is only a unit-testing framework. It provides the ability to run your defined tests and allows you to perform assertions on expected results within the tests. It doesn't facilitate any connections with services. If you want your tests to connect to services, SimplyVBUnit does not prevent that, but you'll have to connect to your services yourself.
You were on the right track. Here is how to add test cases like you want. Private Sub ITestFixture_GetTestCases(ByVal Test As SimplyVBComp.TestFixtureBuilder) Test.Add("TestCase1").Use "arg" Test.Add("TestCase2").Use "arg" Test.Add("TestCase3").Use "arg" Test.Add("TestCase4").Use "arg" End Sub It's very similar to the ITestCaseSource implementation.
I appreciate it very, that you provide support to this community. Thank you! Here's a quick overview of my current project structure: Given DLL to be tested (from production code base). Only the public accessable functions will be tested. This DLL is referenced to my SimplyVBUnit Projekt. So the SimplyVBUnit Project can call those public functions within unit tests. So far so good. SimplyVBUnit.vbp --Forms ----frmTestRunner.frm --Classes ----cls_Test_A.cls ----cls_Test_A_With_Parameter.cls cls_Test_.cls...
I appreciate it very, that you provide support to this community. Thank you! Here's a quick overview of my current project structure: Given DLL to be tested (from production code base). Only the public accessable functions will be tested. This DLL is referenced to my SimplyVBUnit Projekt. So the SimplyVBUnit Project can call those public functions within unit tests. So far so good. SimplyVBUnit.vbp -Forms --frmTestRunner.frm -Classes --cls_Test_A.cls --cls_Test_A_With_Parameter.cls cls_Test_.cls...
I appreciate it very, that you provide support to this community. Thank you! Here's a quick overview of my current project structure: Given DLL to be tested (from production code base). Only the public accessable functions will be tested. This DLL is referenced to my SimplyVBUnit Projekt. So the SimplyVBUnit Project can call those public functions within unit tests. So far so good. SimplyVBUnit.vbp |_Forms |_frmTestRunner.frm |_Classes |_cls_Test_A.cls |_cls_Test_A_With_Parameter.cls cls_Test_.cls...
We are working on a VB6 application for which most the actions are performed on the remote server by connecting to the Db and fecthing the details. Could someone please assist us if SimplyVBunit supports connectivty? and if yes what all connectivites does it support. Please do provide the links (if any) for reference.
Hi Zoran, SimplyVBUnit descovers tests within a class by querying the COM interface. When running in the IDE the IDE gives all classes a public interface within that context and so SimplyVBUnit can find the methods. Unfortunately, once an EXE is compiled all classes are turned private and even though you manually add an instance of the test classes in the form_load event, the methods are private, so SimplyVBUnit cannot descover them. There are no easy options if you're trying to keep everything in...
Just added to my initial post some screenshots for better understanding.
Hello, just installed latest version 4.1.6 of SimlyVBUnit. Running my tests directly from the Visual Basic 6 IDE everything is fine. After creating a binary of my project and running the .exe-file, in the TestRunner UI the tests are not available. Any ideas to that problem?!!
Hello, just installed latest version 4.6.1 of SimlyVBUnit. Running my tests directly from the Visual Basic 6 IDE everything is fine. After creating a binary of my project and running the .exe-file, in the TestRunner UI the tests are not available. Any ideas to that problem?!!
Thanks for getting back to me. Not sure why but I didn't have a TemplatesDirectory value in the registry after installation of VB6 so not a big surprise that the SimplyVB templates didn't get dropped to the expected locations. Did a quick scan of the other keys throughout the ..\Visual Basic\6.0 node in the hive and there were no hits for a TemplatesDirectory value. Manually copying the files over did the trick for me though.
Hello, When installing VB6 the location of the projects template folder is stored in the registery. This is where I pull it from at this registry key: HKCU\Software\Microsoft\Visual Basic\6.0 -> value:TemplatesDirectory. I'm thinking maybe there is a security issue with either accessing the registery entry or writing to the templates folder. I've done several installs on Windows 10 with UAC set to the default and have never had an issue. The other possibility might be that the template location is...
I'm not seeing the project template listed in the New Project form. I don't see any files under C:\Program Files (x86)\Microsoft Visual Studio\VB98\Template\Projects beyond those installed with VB6. I've tried a rebooting as well and no change.
Hello, SimplyVBUnit is under the MIT open source license. Basically you can use it...
Hi, can any one tell Is simplyvbunit tool is a licenced product? if it i then how...
Hi , I am interested to use Simplyvbunit tool, and I have following doubts Is this...
Tinkering with this, I was able to delete my VBG file and create a new one and then...
I realize this is a very old post but I just came across this exact problem myself....
Function LoginToServer() As Integer Dim status As Integer Dim DatabaseName As String...
I am looking to extend the current test runner. Currently it takes user intervention...
VB6 .exe Unit Tests Walkthrough Normally this tool is used for testing projects that...
chore(all): set version number.
Hi all, I'm getting this issue too. After having everything working ok for a few...
Hi all, I'm getting this issue too. After having everything working ok for a few...
version 4.1.6 has been released!
Shortend display of strings parameter values in...
Limited the display length of string values for...
Same problem also, but on a windows xp 32b In my case I copied from C:\Program Files\SimplyVBUnit...
Hello, I never wrote a command line test runner as indicated by this thread. Basically...
Hi Kelly, I was a bit confused with this thread (https://sourceforge.net/p/simplyvbunit/discussion/415411/thread/4856977d)...
ThanK You Kelly!
Hello Jison, No, SimplyVBUnit does not perform any code coverage. Performing coverage...
Hi, Does SimplyVBUnit support code coverage? Regards, Jison.
Updated install script.
Added better failure point information to impro...
There is a wiki here that you can check out to see how to get going. You can always...
Dear Kelly, I'm new in testing and I don't know how to create my own test classes?...
Thank you Kelly.
Hello tannaz, Since you are using the frmTestRunner you shouldn't have a reference...
Hi there, I already have an standard EXE project. 1) I nstalled SimplyVBunit 4.1.4...
Version 4.1 has been released!
Failed to update dll and ocx version number to ...
Test cases with string parameters are now escap...