Re: [TDD] Test Driving WPF
Yes, sorry if I wasn't clear. the XAML and the underlying .cs file would be
in the same project. But the actual Model, controllers, and other services
which are pure code and don't rely on a GUI would
By
Avi Kessner
·
#35440
·
|
Re: [TDD] Test Driving WPF
Hi Alan,
I didn't find any such guidance last time I checked.. I wanted to create a
non-trivial example but procrastinated.
Caliburn looked interesting.. but no testability-oriented tutorials.
Don't
By
Gishu
·
#35439
·
|
Re: [TDD] Test Driving WPF
:)
What I meant: Windows forms was very event driven.. you keep hooking onto
events exposed by objects and fill in the handlers. WPF offers no
corresponding events.. it's MVVM or the
By
Gishu
·
#35438
·
|
Re: [TDD] Test Driving WPF
This may or may not help:
http://msdn.microsoft.com/en-us/library/gg405484%28v=pandp.40%29.aspx
Charlie
By
Charlie Poole
·
#35437
·
|
Re: [TDD] Test Driving WPF
I have been searching a lot for some guidance and am coming up short. ?Okay, maybe an easier question:
I believe that to unit test, you need to have code in a class library project rather than an
By
Alan Baljeu
·
#35436
·
|
Re: [TDD] Test Driving WPF
Not a clue. ?I'm presently trying to find a tutorial on TDD with Caliburn.Micro.
?
Alan Baljeu
________________________________
To: testdrivendevelopment@...
Sent: Tuesday, November
By
Alan Baljeu
·
#35435
·
|
Re: [TDD] Test Driving WPF
Nice summary. I like "mapping old experience doesn't work" ... except it's
the only kind I have. :-)
Charlie
By
Charlie Poole
·
#35434
·
|
Re: [TDD] Test Driving WPF
Yup, me too! More recently, I've done the same using a mock view.
Do you know how to do the same / similar with WPF?
Charlie
By
Charlie Poole
·
#35433
·
|
Re: [TDD] Re: Test Driving WPF
I ran across this the other day...
Microsoft UI Automation library
"In this month's column, I will show you how to get started with UI test
automation using the new Microsoft UI Automation library,
By
Bill Arnette
·
#35432
·
|
Re: [TDD] Re: TDD Jobs
I found pex useful for teaching the concept
By
Avi Kessner
·
#35431
·
|
Re: [TDD] Test Driving WPF
At present, I'm simply trying to build an understanding of good TDD with WPF. ?I'd love to find a tutorial for Caliburn.Micro that demonstrates test-driving. ?I think the prerequisite for this is to
By
Alan Baljeu
·
#35428
·
|
Re: [TDD] Test Driving WPF
Having difficulty visualizing what you're trying to build.
Here's whats worked for me...
- Use MVVM because otherwise you'd be fighting WPF most of the time..
Windows Forms and WPF are different
By
Gishu
·
#35427
·
|
Re: [TDD] Test Driving WPF
How do you write acceptance tests?
?
Alan Baljeu
________________________________
To: testdrivendevelopment@...
Sent: Tuesday, November 5, 2013 2:06:11 AM
Subject: Re: [TDD] Test
By
Alan Baljeu
·
#35426
·
|
Re: [TDD] Test Driving WPF
In earlier times with Windows Forms I did something like this:
[Test]
void Test()
{
? var presenter = new Presenter();
? var view = new View(presenter);
? view.Show();
? presenter.model.x = 3;
?
By
Alan Baljeu
·
#35425
·
|
Re: TDD Jobs
Hi,
I was wondering how I would go about finding TDD's in C# for my company.
Any suggestions would be greatly appreciated.
Kind regards,
E
By
Elliot Wald
·
#35430
·
|
Re: Test Driving WPF
There is a nice new infoq article by Henri Kniberg in which he demonstrates
a simple method for testing below the UI layer
http://www.infoq.com/articles/atdd-from-the-trenches
By
robi.yagel
·
#35429
·
|
Re: [TDD] Test Driving WPF
Alan,
When I was last working on an app with WPF I was trying to test the GUI layer by doing things like "press button" and verifying that the presenters got events.
I seem to remember that I had to
By
Donaldson, John <john.m.donaldson@...>
·
#35424
·
|
Re: [TDD] Test Driving WPF
Alan, it sounds to me like you are on the right track.
By
Avi Kessner
·
#35423
·
|
Re: [TDD] Test Driving WPF
Just because you can't unit test the gui doesn't mean you avoid testing the
gui. You can't TDD yourself towards a good GUI. But you can write
acceptance tests after the fact. When I was working on
By
Avi Kessner
·
#35422
·
|
Re: [TDD] Test Driving WPF
From my (very little) experience with WPF, DataBinding is where the testing
gets hard. Of course, you don't want to test that databinding works, since
it's part of WPF, but there's always the risk
By
Charlie Poole
·
#35421
·
|