Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

system-tests.md 965B

1234567891011121314151617181920212223
  1. # Writing system tests
  2. System tests verify that stylelint works as expected. They are another line of defense against regressions, after the unit tests and integration tests.
  3. Each of these system tests asserts that we end up with some expected output, given a configuration and a stylesheet.
  4. These tests should not be comprehensive and systematic (_the unit tests should_). They should reproduce real use-cases and verify that those use-cases work as expected.
  5. ## Jest snapshots
  6. The tests use Jest snapshots, so we can easily:
  7. - assert against potentially large objects and strings
  8. - update expectations as needed.
  9. ## The pattern
  10. To add a system test, you should:
  11. - add a test-case folder to `system-tests/` incrementing the number from existing test cases
  12. - add a configuration file and a stylesheet
  13. - add a `fs.test.js` and `no-fs.test.js` following the format established by existing tests, and using the `systemTestUtils`
  14. - take a snapshot of `output`