VBA-tools / vba-test

Add testing and TDD to VBA on Windows and Mac
MIT License
202 stars 46 forks source link

Need more explanatory examples #15

Open dougransom opened 7 years ago

dougransom commented 7 years ago

Its is nice to have the examples that are there, but I think there needs to be some written examples showing how to put it all together (as upposed to loading "VBB-TDD Specs.xlsm" and reverse engineering).

robodude666 commented 7 years ago

@dougransom Is the example on the Wiki not enough?

Is it not obvious the wiki has an example, or is the example missing certain details?

connerk commented 6 years ago

I agree to this.

The Wiki still has examples for SpecSuite()

I'm not quite clear on how to write TestCases and add them to a TestSuite without the TestCase being within the TestSuite method. TestSuite.Tests.Add skips the run process that TestSuite.Test() produces

is the WorkbookReporter still the primary operator?
how can we setup TestSuites to run with only the ImmediateReporter?

I'd love to take on any tasks with guidance from @timhall

Thanks!

timhall commented 6 years ago

Everything is still a little in flux, but you're right they are still for version 1 and not very helpful. I'll take a look at the Tests.Add issue, I think that has to do with the done function to get events to work correctly. I personally use the ImmediateReporter most although the WorkbookReporter is there to have something to look at. I'll add some guidance on the best ways of using the ImmediateReporter.

cxw42 commented 5 years ago

I am missing something regarding the TDD example. In the current master branch, I cannot find a SpecSuite or a sub or function It() to call. Is the TDD example covering a future enhancement, or code in a different project?