This later behavior is because of the debugging support we have
introduced. You can switch off the debugging support from the
configuration (<generator allowDebugGeneratedFiles="true" />).
I have no idea why you get the nullref ex. What you can do is to debug
the execution, stop at the exception and see which method SpecFlow is
about to call. Maybe it shows the issue.
On the other hand, SpecFlow has it's own event infrastructure that can
be used for implementing db setup / tear down logic. Maybe the direct
unit-test solution is somehow confusing with SpecFlow. You need to use
the [Before/AfterTestRun] events.
Br,
Gaspar
On May 18, 5:16 pm, Brian Hazzard <bhazz...@gmail.com> wrote:
> Another interesting symptom:
>
> When I try to set a breakpoint in the generated test-fixture Visual Studio
> gives the message "The breakpoint will not currently be hit. No executable
> code is associated with this line. Possible causes inclide conditional
> compilation or compiler optimizations."
>
> Yet I can set breakpoints in my Step Definitions and Events, as well as my
> NUnit fixtures. These breakpoints never get hit though.
>
> Brian Hazzard
>
> On Tue, May 18, 2010 at 11:00 AM, Brian Hazzard <bhazz...@gmail.com> wrote:
> > I reapplied the SpecFlow 1.3 dlls and then regenerated the test-fixtures
> > and the same result occurred. To provide some extra background:
>
> > I am using NUnit as my test runner. In the same project I have:
>
> > [SetUpFixture]
> > public class DatabaseFixture
> > {
> > }
>
> > With all the associated SetUp and TearDown to create a database and it's
> > tables, and then destroy them when all the tests have completed.
>
> > With 1.2 this worked correctly and the databases were created and destroyed
> > before and after the suite ran... but with 1.3 it seems to fail in the
> > DatabaseFixture setup. Again, if I revert back to the SpecFlow 1.2 dlls all
> > is well again.
>
> > Brian Hazzard
>
> > On Tue, May 18, 2010 at 2:15 AM, Jonas Bandi <jonas.ba...@gmail.com>wrote:
>
> >> Could you please try to regenerate the test-fixtures (code-behind) from
> >> your feature files.
> >> This can be done in one of the following ways:
> >> - Change the feature file (ie. add a whitespace somewhere) and then save
> >> the file.
> >> - In "Properties" of the feature file choose "Run Custom Tool"
> >> - Use the MSBuild task of SpecFlow to regenerate all text-fixtures from
> >> feature files in the solution
>
> >> Please tell me if that solved the issue.
>
> >> mail: jonas.ba...@gmail.com
Sorry for the inconvenience.
jonas
--
mail: jonas...@gmail.com