MichaelSpencerJr / BenedictionGame

Windows client for the board game Benediction by Alek Erickson
0 stars 0 forks source link

Unit and Integration Test Build-Out #3

Open MichaelSpencerJr opened 4 years ago

MichaelSpencerJr commented 4 years ago

Stop feature work for a bit and build out unit and integration tests. Introduce Specflow, write Specflow bindings, and teach Alek to write plain-English tests in the format Specflow expects.

MichaelSpencerJr commented 4 years ago

Essentially I write test bindings like this:

20200129_072919

They match plain English text and try to actually do what the author said.

I'll build out the first of these, but what I'm looking for you, Alek, to write are these:

20200129_072949

These Scenerio and Scenario Outline sections can just be copied and pasted to make new tests. If you word something slightly differently, no big deal - I can just add more alternative ways to phrase each binding.

We use Specflow extensively at work - 6-7 thousand tests for the product my team makes, most of which are in Specflow - so you won't be able to break things in a way I can't fix. Don't worry.

AlekErickson commented 4 years ago

Okay. I'm working on it but it is not gonna be immediate that I can get all these done.

MichaelSpencerJr commented 4 years ago

Wait, I haven't checked in any examples yet. There's nothing for you to do quite yet.

MichaelSpencerJr commented 4 years ago

I'll take care of all of the obvious tests. Eventually what I want to tap you for is interesting game board scenarios, odd corner cases, etc. Things where you set up an entire board full of pieces as a game in progress and test if something weird works as it's supposed to.

AlekErickson commented 4 years ago

Oh okay

On Thu, 30 Jan 2020 at 01:51, MichaelSpencerJr notifications@github.com wrote:

I'll take care of all of the obvious tests. Eventually what I want to tap you for is interesting game board scenarios, odd corner cases, etc. Things where you set up an entire board full of pieces as a game in progress and test if something weird works as it's supposed to.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MichaelSpencerJr/BenedictionGame/issues/3?email_source=notifications&email_token=AI7RYEJGUFWRZFOVPHWZOVDRAIQBXA5CNFSM4KMGJSWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKJJYQQ#issuecomment-580033602, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI7RYEOZ2B4ASHDW3YDY27DRAIQBXANCNFSM4KMGJSWA .