DublinWriter wrote: » A particular client is looking for 'Unit testing in code' for software going through their test team. The systems in question are C# ASP.Net webforms apps and are essentially CRUD in nature and not algorithmic. I'm not sure it's advisable or even possible for these types of apps. How would you approach it?
DublinWriter wrote: » The systems in question are C# ASP.Net webforms apps and are essentially CRUD in nature and not algorithmic.
Mr. CooL ICE wrote: » One possibility would be to create a static method library and refactor as much of the existing codebehind code into it. That way, it would be possible to unit test certain sections of it.
Mr. CooL ICE wrote: » It sounds like the webforms app you are working on has all the logic in the server codebehind section, so unit testing probably isn't possible if your .cs file is thousands of lines long.
DublinWriter wrote: » Each form has its own codebehind .cs file plus there's a library of generic utility functions. There's a DAL, but no BAL.
igCorcaigh wrote: » I don't understand why the client is asking for unit testing in particular, personally I would push back on this.
DublinWriter wrote: » I think I understand why - a few people probably were sent on a DevOps course recently and came back loaded-up with the latest industry buzzwords without a decent understanding of their meaning and context. I intend to push back on this. The only rationale I got from management was that they are now following "Modern Software Engineering" practices. Bear in mind that they are still following a Waterfall model for delivering IT projects from the smallest 10-user system to major enterprise rollouts and have resisted Agile at every turn.
km991148 wrote: » I am not clear tho - is this for new development on an existing app or is it to add unit tests to the existing CRUD webforms app.
DublinWriter wrote: » It's for a six-year old CRUD webforms app that's being updated and has gone through their internal testing twice previously.
DublinWriter wrote: » All ended well - client's test team agreed it was a nonsense Turns out it was a requirement arbitrarily added on by clueless middle-tier consultant who recently attended a Microsoft workshop.
counterpointaud wrote: » May use something like Cypress for e2e / integration tests instead?
igCorcaigh wrote: » Interesting. First I have heard of Cypress. Would this work will in a tightly written CRUD type application like that described by the OP?