visual studio - Running unit tests from within VS2008 vs using mstest on the command line -
I had some inconsistencies in running VS 2008 vs. Unit Test against the running of the same unit test with MSTES on the command line recently. Have faced. / P>
My scenario is a bit advanced, so I've probably hit some corners. I have many data driven unit tests running against the same datasource. I like to experiment with PostShare, so I have a PostSharp aspect - TestDataSource
is written - which I apply to the unit test type, not the unit test methods. When the type is created, this aspect gives the PostSHORA instructions to attach the "Code> DataSource attribute to each type of unit examination method.
Checking the assembly built in the reflector It is found that each test method is credited with the correct DataSource
attribute, running the test with the mstest on the command line behaves as expected - each test specifies the data It is run against the source.
However, the VS2008 fails to run the exact same unit test to find the data source. It appears that the VS-2008 ignores the assembly created and the source Code, which is definitely not a data driven trial, because the datasource
attribute is injected during creation.
There is no problem with the deployed items < Code> DatasO
Comments
Post a Comment