Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Angular Testing von A bis Z

Angular Testing von A bis Z

AngularDays 2017 in Berlin - Testing from A to Z

Fabian Gosebrink

October 11, 2017
Tweet

More Decks by Fabian Gosebrink

Other Decks in Technology

Transcript

  1. Agenda Exploring the Tools Unit Testing with Angular Integration Testing

    with Angular End 2 End Testing with Angular Test Driven Development
  2. Some Jasmine Matchers expect(array).toContain(member); expect(mixed).toBeDefined(); expect(mixed).toBeFalsy(); expect(mixed).toBeNull(); expect(mixed).toBeTruthy(); expect(mixed).toBeUndefined(); expect(mixed).toEqual(mixed);

    expect(mixed).toMatch(pattern); expect(number).toBeCloseTo(number, decimalPlaces); expect(number).toBeGreaterThan(number); expect(number).toBeLessThan(number); expect(number).toBeNaN(); expect(spy).toHaveBeenCalled(); expect(spy).toHaveBeenCalledTimes(number); expect(spy).toHaveBeenCalledWith(...arguments);