teerox / Nimble-iOS-Challenge

0 stars 0 forks source link

Testing issues #10

Open minhnimble opened 2 years ago

minhnimble commented 2 years ago

It is quite nice to see that you've included a few unit tests for the ViewModel layer’s logic 👍. Unfortunately, some of the tests are failing at the moment and the app crashes while running the tests. Please help check them.

Failed tests with crash: Screen Shot 2022-02-25 at 14 51 27

Crashed stack trace: Screen Shot 2022-02-25 at 14 51 34

At the same time, I would like to know if you have any experiences in any other 3rd-party library for writing tests apart from the native XCTest? If yes can you tell me a little bit more on how you would write tests using those libraries?

Lastly, I see that you have setup the UI test folder in the application but there are no test case available. Can you add a few more UI tests with some basic flows in the application? An example could be opening the Survey Lists screen from Login screen 🙏

teerox commented 2 years ago

I tried Debugging this, currently dont know why its crashing, runs fine on my end. but would try it out on another PC. for now i use just the native XCTest and because this is what i use in my current work place but i'm open to learning about those third party libraries for testiing.

minhnimble commented 2 years ago

I tried Debugging this, currently dont know why its crashing, runs fine on my end. but would try it out on another PC

Basically, I just open the project's workspace, do pod install and press the Test button on a Simulator and then I run into this problem. Please double check again and let me know the result once you have it.