Skip to content

Commit

Permalink
Refactor tests (#6)
Browse files Browse the repository at this point in the history
* Add integration test job

* Add testing to readme

* Update readme

* Move tests

* Refactor test

* Clean up ci

* Update changelog

* Update rust

* Restructure tests

* Refactor test

* Add tempfile and disable lib test

* Add status and version to readme

* Rewrite test read

* Refactor test

* Refactor tests

* Fix clippy warnings

* Refactor args

* Refactor email

* Refactor mime format

* Add tests

* Clean up tests

* Test mime format

* Test message from args

* Refactor bulk email

* Refactor sender

* Refactor receiver

* Refactor send

* Refactor client

* Fix test run

* Refactor bulk email

* Format code

* Fix clippy warnings

* Clean up tests

* Refactor read

* Refactor csv

* Test write csv

* Rename sources

* Test init

* Refactor message template

* Rename helper

* Add integration and os tests to CI

* Test personalize

* Test bulk receiver

* Test bulk email

* Fix clippy warnings

* Test archive

* Test client

* Finish tests

* Finish tests II

* Add coverage to readme

* Refactor module

* Refactor module II

* Fix ci

* Update dependencies
  • Loading branch information
quambene committed Mar 31, 2024
1 parent f854d2a commit 55f870c
Show file tree
Hide file tree
Showing 61 changed files with 2,946 additions and 2,588 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,29 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: cargo test
run: cargo test --locked
- name: cargo test --lib
run: cargo test --lib --locked
integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: cargo test --test '*'
run: cargo test --test '*' --locked
os-test:
runs-on: ${{ matrix.os }}
name: os-test / ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: cargo test --lib
run: cargo test --lib --locked
- name: cargo test --test '*'
run: cargo test --test '*' --locked
doc-test:
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<!-- markdownlint-disable MD041 -->

### Unreleased

- changed
- Refactor integration tests
- Update to rust 1.77

### v0.4.0 (2022-12-24)

- added
Expand Down
Loading

0 comments on commit 55f870c

Please sign in to comment.