Skip to content

Commit

Permalink
Add CSS validation to TESTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura10101 committed Feb 8, 2024
1 parent d4a90cb commit 56f7d05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
### HTML Validation

### CSS Validation
All custom CSS is contained within my base.css file as part of the base template. This file validates successfully as shown below:

![CSS validation for base.css](https://laura10101.github.io/contractor-tax-calculator/documentation/validation/css/css-validation.png)

### JavaScript Validation

Expand All @@ -33,11 +36,11 @@ To achieve this, I decided to test each layer of this architecture individually
- **Model Tests** which focus on testing individual model methods where these are sufficiently complex to justify this level of testing (for exmaple, in the case of the calculations functionality).

In total, I developed 600 tests covering each of the five APIs which are all passing as shown below:
![Pytest results for API tests](https://laura10101.github.io/contractor-tax-calculator/documentation/screenshots/api-test-results.jpg)
![Pytest results for API tests](https://laura10101.github.io/contractor-tax-calculator/documentation/screenshots/api-testing/api-test-results.jpg)

These 600 tests provide 83% coverage across the five APIs as shown below. The following coverage report was generated using the Python coverage library:

![Test coverage report for API tests](https://laura10101.github.io/contractor-tax-calculator/documentation/screenshots/api-test-coverage.jpg)
![Test coverage report for API tests](https://laura10101.github.io/contractor-tax-calculator/documentation/screenshots/api-testing/api-test-coverage.jpg)

### Forms API Tests ###

Expand Down
Binary file added documentation/validation/css/css-validation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 56f7d05

Please sign in to comment.