-
Notifications
You must be signed in to change notification settings - Fork 122
How do I submit a test case on GMD?
Creating Test Cases are very important to GMD Projects to ensure the quality of our Material Design widget's API, not only it's behavioral aspect but also the layout / structure of it. We used the default GWT Test which is the integration of JUnit Testing Framework and it's an Open Source project.
On the other hand, we are using BrowserStack Automate to easily create a StoryBoard of your GMD Application for Testing on different Browser / Platform - using Selenium Test.
-
On this guide, you will learn how to contribute a simple test case of each Widget API. Let's focus first on how you will create new Test Case.
-
Step 1 - Go to respective test directory. Below are other project test directories
-
Step 2 - Go to any kind of widget you want to add / update a test case (For e.g MaterialFabTest)
-
Step 3 - Adding new test method requires to be called inside the
init()method see for checkStructure as for example. -
Step 4 - After that, you can now your test suite by going to GwtMaterialTestComponent::testFab() and click the little refresh icon.
Click here for more information on GWT Testing.