Yii Framework Forum: NomadPHP - May 18th - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

NomadPHP - May 18th

#1 User is offline   Dana 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 18-February 10
  • Location:Florida, USA

Posted 17 February 2017 - 08:32 AM

Earlier this month I presented at SunshinePHP on using Codeception to ensure your application is fully covered before performing a major migration. I will be presenting that topic again via NomadPHP on May 18th. The samples are in Yii framework, as this all came about as we were migrating a massive application from Yii 1 to Yii 2.

https://nomadphp.com...ion-migrations/

If you have any specific questions that you'd like to have addressed, I can be sure to include them in the Q/A section at the end, so please let me know.
1

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,992
  • Joined: 17-January 09
  • Location:Russia

Posted 18 February 2017 - 02:37 PM

Great! I haven't seen previous talk or slides so maybe it's addressed in the talk itself. I wonder what you consider full coverage: code coverage or use case coverage. 100% code coverage doesn't necessary means 100% of use cases.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I work on Yii fulltime: https://www.patreon.com/samdark
0

#3 User is offline   Dana 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 18-February 10
  • Location:Florida, USA

Posted 20 February 2017 - 04:42 PM

View Postsamdark, on 18 February 2017 - 02:37 PM, said:

Great! I haven't seen previous talk or slides so maybe it's addressed in the talk itself. I wonder what you consider full coverage: code coverage or use case coverage. 100% code coverage doesn't necessary means 100% of use cases.



Excellent point! I go over how to ensure you're getting 100% code coverage (the actual line by line reporting) and the need to ensure that your fixture data is handled in such a way as to cover all of your edge cases, as the results of the tests are only as good as the data you put into it.
0

#4 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,992
  • Joined: 17-January 09
  • Location:Russia

Posted 21 February 2017 - 04:56 AM

How do you choose data for edge cases?
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I work on Yii fulltime: https://www.patreon.com/samdark
0

#5 User is offline   Dana 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 18-February 10
  • Location:Florida, USA

Posted 22 February 2017 - 08:24 AM

Our initial edge cases are decided upon by the initial use cases and trying to determine how an end user might attempt to do things differently with the options presented, or ways that requirements may differ based on the various scenarios. It's just a lot of permutations and sanity checking.

Over time, additional cases come up from Customer Requests/Feedback and the error logs - any time an issue is reported that involves a new edge case we hadn't considered, I set up a data point for it so that when the tests are run we're ensuring that particular scenario never gets overlooked.

Would love to hear how other people predict such data.
1

#6 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,992
  • Joined: 17-January 09
  • Location:Russia

Posted 22 February 2017 - 09:32 AM

There are theories about choosing test data to be be minimal amount of data with maximum case coverage. I think these are best implemented in Microsoft tools where you give a range and it gives you data back.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I work on Yii fulltime: https://www.patreon.com/samdark
0

#7 User is offline   Dana 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 18-February 10
  • Location:Florida, USA

Posted 18 May 2017 - 08:14 AM

The NomadPHP Meet Up is today - I believe there is still time to register if anyone is interested:

https://nomadphp.com...ion-migrations/
1

#8 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,992
  • Joined: 17-January 09
  • Location:Russia

Posted 18 May 2017 - 12:11 PM

How was it?
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I work on Yii fulltime: https://www.patreon.com/samdark
0

#9 User is offline   Dana 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 18-February 10
  • Location:Florida, USA

Posted 18 May 2017 - 02:40 PM

Went well, thanks! =) Hopefully a little extra exposure for Yii in the process ;)
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users