M
MD
Hello
I work in a .NET environment and I am about to create a development
strategy. As part of this I am looking at implementing a testing tool
to fit in with an iterative approach and NUnit seems to be the logical
choice. Although it works well with very simple classes, it seems to
struggle when you are confronted with anything substantial - eg an
application that accesses/updates an RDBMS.
For instance :-
- how do I test the processing of database operations - a query of any
substance is difficult enough to verify as it requires a test bed of
static data - but an update not only requires a test bed but also a
query to make sure the update was successful - is this the way this is
done - I have read somewhere that NUnit assumes database operations to
be successful - in the real world, this of course can't be assumed so
do I need another tool to test queries (including complex report
queries) and updates.
- how do I test a method that processes say a datatable - do I have to
create a datatable manually then pass this to the method within the
NUnit Assert.
I am looking for simple solutions here - the developers that will
follow this do not have the time to develop numerous complex testing
classes inhereting base classes specially created for the sake of
testing.
Does anyone have examples - say a solution that includes an NUnit
project that tests an RDBMS .NET application.
Many thanks
I work in a .NET environment and I am about to create a development
strategy. As part of this I am looking at implementing a testing tool
to fit in with an iterative approach and NUnit seems to be the logical
choice. Although it works well with very simple classes, it seems to
struggle when you are confronted with anything substantial - eg an
application that accesses/updates an RDBMS.
For instance :-
- how do I test the processing of database operations - a query of any
substance is difficult enough to verify as it requires a test bed of
static data - but an update not only requires a test bed but also a
query to make sure the update was successful - is this the way this is
done - I have read somewhere that NUnit assumes database operations to
be successful - in the real world, this of course can't be assumed so
do I need another tool to test queries (including complex report
queries) and updates.
- how do I test a method that processes say a datatable - do I have to
create a datatable manually then pass this to the method within the
NUnit Assert.
I am looking for simple solutions here - the developers that will
follow this do not have the time to develop numerous complex testing
classes inhereting base classes specially created for the sake of
testing.
Does anyone have examples - say a solution that includes an NUnit
project that tests an RDBMS .NET application.
Many thanks