Click here to Skip to main content
15,891,184 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Unit Testing... yay or nay? Pin
DT Bullock22-Apr-24 22:19
DT Bullock22-Apr-24 22:19 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon22-Apr-24 4:12
professionalJeremy Falcon22-Apr-24 4:12 
GeneralRe: Unit Testing... yay or nay? Pin
DT Bullock22-Apr-24 20:17
DT Bullock22-Apr-24 20:17 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon23-Apr-24 5:40
professionalJeremy Falcon23-Apr-24 5:40 
GeneralRe: Unit Testing... yay or nay? Pin
DT Bullock23-Apr-24 21:32
DT Bullock23-Apr-24 21:32 
AnswerRe: Unit Testing... yay or nay? Pin
Peter Shaw22-Apr-24 0:45
professionalPeter Shaw22-Apr-24 0:45 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon22-Apr-24 4:15
professionalJeremy Falcon22-Apr-24 4:15 
GeneralRe: Unit Testing... yay or nay? Pin
Peter Shaw22-Apr-24 4:32
professionalPeter Shaw22-Apr-24 4:32 
Quote:
Technically, if you needed fake DB data that would be a fixture. But, a unit test shouldn't call a live resource. You can't do gated check-ins that way as it would take too long to run thousands of tests.


This is why I always, always, always advocate a dev/stage/prod setup, esp for web applications.

Dev has the "same server software", but may have data quality issues, maybe the odd broken dependency here and there, but usually nothing that the development team in general can't fix. It irritates the hell out of me, when corp/internal I.T. and the business, mandate that the same "I.T. security policy's" regarding admin access should be applied to developer only instances, as if they where prod.

Staging, should always be a "clean" dev copy. Software should be as close to prod as possible, deployments should ONLY be to staging after seniors on the dev teams have verified that the code is sound, working and potentially ready for prod.

Prod, well I don't need to state anything about this one Smile | :)

My point here is that, it should be perfectly acceptable to use "Live" resources, if you have a proper dev/stage/prod set-up.

If data quality is a necessity, then there are ways to easy mirror a live DB to the dev & stage environments, while maintaining PII security, such as redacting information with stars as it's copied across, that way the data "format" is preserved well enough to work in testing.

In many of the projects I work, I go in, and build the dev team myself, usually a very tight knit bunch who've all worked together before, and who bounce off each other very well. If it's not a large project, or a simple desktop app that one dev can handle, I'll run the entire project myself, so I don't often find myself in a situation where I have a very large team to co-ordinate with.

The last time I found myself in that environment was back when I worked FT for a single corp, and as a corp I had to follow corp policy's, if they mandated TDD down to the bone, then it was TDD down to the bone.

These days I much prefer the consultancy life style, where I go in, advise, build, test after it's built then move on to the next exciting project Smile | :)
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon22-Apr-24 4:47
professionalJeremy Falcon22-Apr-24 4:47 
AnswerRe: Unit Testing... yay or nay? Pin
K Personett22-Apr-24 3:46
K Personett22-Apr-24 3:46 
AnswerRe: Unit Testing... yay or nay? Pin
Jerry Walter 202422-Apr-24 3:14
Jerry Walter 202422-Apr-24 3:14 
AnswerRe: Unit Testing... yay or nay? Pin
PIEBALDconsult22-Apr-24 3:41
mvePIEBALDconsult22-Apr-24 3:41 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon22-Apr-24 4:20
professionalJeremy Falcon22-Apr-24 4:20 
GeneralRe: Unit Testing... yay or nay? Pin
PIEBALDconsult22-Apr-24 7:00
mvePIEBALDconsult22-Apr-24 7:00 
AnswerRe: Unit Testing... yay or nay? Pin
Shmoken9922-Apr-24 5:36
Shmoken9922-Apr-24 5:36 
AnswerRe: Unit Testing... yay or nay? Pin
SeattleC++22-Apr-24 8:02
SeattleC++22-Apr-24 8:02 
GeneralRe: Unit Testing... yay or nay? Pin
Jeremy Falcon22-Apr-24 12:10
professionalJeremy Falcon22-Apr-24 12:10 
GeneralThis doesn't warrant an article, but since it's common enough... Pin
Jeremy Falcon19-Apr-24 13:48
professionalJeremy Falcon19-Apr-24 13:48 
GeneralRe: This doesn't warrant an article, but since it's common enough... Pin
jeron119-Apr-24 14:21
jeron119-Apr-24 14:21 
GeneralRe: This doesn't warrant an article, but since it's common enough... Pin
Jeremy Falcon19-Apr-24 14:26
professionalJeremy Falcon19-Apr-24 14:26 
GeneralRe: This doesn't warrant an article, but since it's common enough... Pin
Jeremy Falcon19-Apr-24 14:30
professionalJeremy Falcon19-Apr-24 14:30 
GeneralRe: This doesn't warrant an article, but since it's common enough... Pin
jeron119-Apr-24 15:09
jeron119-Apr-24 15:09 
GeneralWordle 1,036 Pin
StarNamer@work19-Apr-24 13:39
professionalStarNamer@work19-Apr-24 13:39 
GeneralRe: Wordle 1,036 Pin
Amarnath S19-Apr-24 15:05
professionalAmarnath S19-Apr-24 15:05 
GeneralRe: Wordle 1,036 Pin
Sandeep Mewara19-Apr-24 17:51
mveSandeep Mewara19-Apr-24 17:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.