-
Notifications
You must be signed in to change notification settings - Fork 4
Testing
In BAM-Phoenix we used Jasmine testing framework and Karma server to run the unit test. To write the unit test we utilized the spec.ts file and made test cases in some of the components. In the unit test, we are able to test if the components were created correctly by testing to see if the HTML tags of certain parts of the component were created.We also used the Jasmine SpyOn to monitor the state of a specific method within that component. Utilizing the SpyOn method we were able to create multiple test cases for a single component. Although this was implemented in a couple of components this method can be used for other components throughout the application. We also leveraged the xdescribe to ignore the test suites and fdescribe to test individual test suites.