rifaterdemsahin / aif

Adaptive Intelligence Framework
5 stars 7 forks source link

Setup TDD Design as Test Runner Smoke #228

Closed dorukugur closed 5 years ago

dorukugur commented 5 years ago

https://docs.unity3d.com/Manual/testing-editortestsrunner.html

dorukugur commented 5 years ago

https://www.youtube.com/watch?v=MWS4aSO7HAo

dorukugur commented 5 years ago

If the button is unable to click, the testrunner should catch that.

rifaterdemsahin commented 5 years ago

Please share this feature with @Neutrinora image

dorukugur commented 5 years ago

I tried to create TDD architecture to test Intro scene by C# script, unity TestRunner. The test goal: check button active self, if it is not enable, testing steps show error with its description. However, it is enable during testing, steps of testing say that the goal is working properly. @rifaterdemsahin @Neutrinora

ekran resmi 2018-08-25 23 59 52 ekran resmi 2018-08-26 00 00 03 ekran resmi 2018-08-26 00 00 29 ekran resmi 2018-08-26 00 05 47
dorukugur commented 5 years ago

We're going to focus on smoke sanity testing.

dorukugur commented 5 years ago

Find clicking run all function automatically.

dorukugur commented 5 years ago

Find away how to stop in a specific scene.

dorukugur commented 5 years ago

Create a test for each scene which specific test names.

dorukugur commented 5 years ago

Enum for scenes.

dorukugur commented 5 years ago

Learn how to set the test indexes on testrunner steps.

dorukugur commented 5 years ago

https://www.reddit.com/r/Unity3D/comments/9afoda/how_to_integrate_unity_testrunner_with_unity_cloud/

dorukugur commented 5 years ago

image

dorukugur commented 5 years ago

https://developer.cloud.unity3d.com/orgs/rifaterdemsahin/projects/hare/

ghost commented 5 years ago

will every scene have a unity test method?

dorukugur commented 5 years ago

Yes. But some scenes and their test methods are empty right now. Tests will ready for all soon.

rifaterdemsahin commented 5 years ago

@makif6111 practical testing from here also works

Rigiht now test all fails image

rifaterdemsahin commented 5 years ago

@dorukugur it works when triggered alone image

please check the changes from @Neutrinora

rifaterdemsahin commented 5 years ago

Basic page load is even ok. image

@Neutrinora as this is a smoke test just loading can be enough.

If moving the keys cause more than 30 lines of code than it might create more issue than the gain. image

rifaterdemsahin commented 5 years ago

@dorukugur please check the comments for them to make sense in tests image

rifaterdemsahin commented 5 years ago

this smoke test runners will be used like this https://drive.google.com/file/d/1ct1_VfF6zzCWInCpGEDInLcCI3-ox_af/view?usp=sharing