Re: [TDD] Test Driving WPF
Well yes, I consider MVVM a given, and Caliburn.Micro looks like a good option. ?Now for testing a view I think I should want a fake ViewModel that just gives the view fixed data in order to see how
By
Alan Baljeu
·
#35420
·
|
Re: [TDD] Test Driving WPF
Hi Steve,
The fact that the user has to test the whole app anyway could be used as an
excuse to eliminate all kinds of testing. In fact is has been used that way.
In Windows days, "Make your GUI
By
Charlie Poole
·
#35418
·
|
Re: [TDD] Test Driving WPF
I haven't done much with WPF for a couple of years but you can use MVVM and unit test the subcutaneous layer or you can use an automation tool like White
By
paulnmackintosh
·
#35417
·
|
Re: [TDD] Test Driving WPF
It's software - of course, things can go wrong, even when there is 100%
test coverage.
Tests cannot fully specify/verify the usability of GUI by humans, so manual
testing of the GUI is necessary
By
Steve Gordon
·
#35416
·
|
Re: [TDD] Test Driving WPF
Okay so I want to make a medium fancy list control on a page of a dialog, where each element of the list has a bunch of dropdowns arranged and styled nicely, and with contents of these dropdowns being
By
Alan Baljeu
·
#35415
·
|
Re: [TDD] Test Driving WPF
So I guess nothing can go wrong! :-)
By
Charlie Poole
·
#35414
·
|
Re: [TDD] Test Driving WPF
A benefit of Avi's approach is that it highly encourages a thin GUI that
delegates as much as possible to directly testable code that reside in
other DLLs, which we all know results in a better, more
By
Steve Gordon
·
#35413
·
|
Re: [TDD] Test Driving WPF
"The UI itself can't be tested with unit tests." ?Do you mean to suggest the UI itself won't be tested? ?You say controls should be tested, but how can you do this in the context of WPF which likes
By
Alan Baljeu
·
#35412
·
|
Re: [TDD] Test Driving WPF
What's about MVVM and test the view model?
I would look for Caliburn.Micro
By
David V¨ªlchez <dvilchez@...>
·
#35419
·
|
Re: [TDD] Test Driving WPF
The general rule we have is to test the model and the controls that dictate
the changes to the UI, but the UI itself can't be tested with unit tests.
Alternatively, you can try to take screen shots
By
Avi Kessner
·
#35411
·
|
Test Driving WPF
I'm kind of new to WPF and trying to TDD an application that uses it. ?I'm a little frustrated that Microsoft's default program architecture still isn't TDD friendly. ?It creates an application
By
Alan Baljeu
·
#35410
·
|
Re: [TDD] Design & Evolution of TDD?
PLoP = Pattern Languages of Programs, as far as I remember.
Check: http://www.hillside.net/plop/2013/ http://www.hillside.net/plop/2013/
---In testdrivendevelopment@...,
By
Marco Dorantes
·
#35409
·
|
AgileDenver October 28: Stephan Hagemann on "Agility and the Go language"
On Monday, October 28, Agile Denver will host guest speaker Stephan Hagemann. Stephan will present on the Go language (golang). Go was invented at Google and includes enhancements that can make it
By
Alex Viggio
·
#35408
·
|
Re: [TDD] Unit tests and parameter validation
Keith Ray wrote:
In that case you just got pwned by a framework. Ouch.
Adding to what I said before, the in/out view blurs if you create thin
verticals, which you should, but even then I prefer going
By
Michal Svoboda
·
#35407
·
|
Re: [TDD] Unit tests and parameter validation
Where does that data come from?
Programmers or external sources?
Development time or runtime?
I don't test against programmers but might test if data comes from a file
or database. Humans can
By
Tim Ottinger
·
#35406
·
|
[TDD] Unit tests and parameter validation
IIRC, the terms London and Detroit school were dreamt up on this list as a
reaction to the negative reactions to "mockist/statist" terminology. Can't
remember who suggested them, but they stuck at
By
Adam Sroka
·
#35405
·
|
Re: [TDD] Re: Unit tests and parameter validation
Speaking about Detroit and London Schools, did you read the book Growing
Object Oriented Software Guided by Tests (GOOS) from Steve Freeman an Nat
Price? Just
By
Josue Barbosa dos Santos
·
#35404
·
|
Re: [TDD] Re: Unit tests and parameter validation
Hi David,
In fact I generally work "outside-in", with occasional experiments on "I wonder whether, if I took this course, I could make such and so happen", where I'll build some inside thing. I would
By
Ron Jeffries
·
#35403
·
|
Re: [TDD] Re: Unit tests and parameter validation
I will be honest. Except for the most basic of VOs I don't know how you
can be sure of what is 'inside' and what is 'outside'. Sometimes even your
GUI becomes a component for a wrapper.
By
Avi Kessner
·
#35402
·
|
Re: Unit tests and parameter validation
An interesting discussion. I must admit that it hadn't really occurred to me that much parameter validation could be a complete waste of time, so thanks for the insight.
It does seem to me that even
By
Parsons, David
·
#35401
·
|