Skip to content

Commit

Permalink
Merge experimenting branch into main (#1)
Browse files Browse the repository at this point in the history
* Closure-based assertions

* Move to trait-based assertions

* Simplify failure messages

* Add some assertions/modifiers, clean type params

* Improve panic messages by changing source of panic

* Simplify __expect_inner

* Add docs for creating custom assertions/modifiers

* core -> std

* Simplify modifier functions

* Add #[inline]

* Test for short-circuiting

* Delete old experiments folder

* Rename AssertionResult -> AssertionOutput

* Some doc updates

* Simply some repetitive tests using test-case

* Add try_unwrap

* Add support for non-clone subjects in all/any

* Add install instructions to docs

* Update error to compile without colors feature

* Cleanup some cfg attrs and remove unused code

* Add integration tests (simple, error messages)

* Fix clippy warnings

* Add CI workflow

* Add license files and note to README

* Remove extra borrow on SourceLoc

* Disable publishing to avoid accidential publish

* Simplfy context frame name collection

* Restructure macro to provide better completions

* Remove extra branch from __expect_inner

* Remove extra braces

* Change macro to work with extension methods

* Add some attributes and box a value for clippy

* Fix and improve doc comments

* Unify type param order for annotate types

* Add to_{start,end}_with, chars

* Remove outdated test

* Add a super conservative msrv
  • Loading branch information
TehPers authored Aug 13, 2024
1 parent da83d6c commit 2af3060
Show file tree
Hide file tree
Showing 98 changed files with 5,799 additions and 1,837 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI
on:
pull_request:
push:
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt
- name: Check formatting
run: cargo fmt --check

lint:
name: Lint
needs:
- format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup toolchain
uses: dtolnay/rust-toolchain@clippy
- name: Run clippy
run: cargo clippy --tests -- -D warnings

test:
name: Test (${{ matrix.name }})
needs:
- format
- lint
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
name:
- all features
- no features
include:
- name: all features
flags: ""
- name: no features
flags: --no-default-features
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt
- name: Run tests
run: cargo test --verbose
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"recommendations": [
"serayuzgur.crates",
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml"
]
Expand Down
Loading

0 comments on commit 2af3060

Please sign in to comment.