Testing | laravel-feed-rust | Spatie       

 SPATIE  

laravel-feed-rust
=================

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Laravel-feed-rust](https://spatie.be/docs/laravel-feed-rust/v1)  Testing

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/laravel-feed-rust/v1) 

  Testing    
- [ Introduction ](https://spatie.be/docs/laravel-feed-rust/v1/introduction)
- [ Support us ](https://spatie.be/docs/laravel-feed-rust/v1/support-us)
- [ Installation ](https://spatie.be/docs/laravel-feed-rust/v1/installation-and-setup)
- [ Usage ](https://spatie.be/docs/laravel-feed-rust/v1/usage)
- [ HTTP integration ](https://spatie.be/docs/laravel-feed-rust/v1/http)
- [ Customization ](https://spatie.be/docs/laravel-feed-rust/v1/customization)
- [ Changelog ](https://spatie.be/docs/laravel-feed-rust/v1/changelog)
- [ Testing ](https://spatie.be/docs/laravel-feed-rust/v1/testing)

 Testing
=======

- Run these checks from the package directory. Clippy includes the `pedantic` lint group:

```
cargo fmt --all -- --check
cargo clippy --locked --all-targets --all-features -- -D warnings
cargo test --locked --all-targets --all-features
cargo test --locked --doc --all-features
cargo doc --locked --no-deps --all-features
cargo package --locked
```

- Set `RUSTFLAGS` and `RUSTDOCFLAGS` to `-D warnings` to deny compiler and documentation warnings, as CI does.
- README.md and all Markdown pages in docs/ participate in rustdoc tests. Setup lines prefixed with `# ` execute but remain hidden in rustdoc. Assertions check the examples' results.
- Check the minimum supported Rust version:

```
rustup toolchain install 1.99.0 --profile minimal
cargo +1.99.0 test --locked --all-targets --all-features
cargo +1.99.0 test --locked --doc --all-features
```

- Check security advisories:

```
cargo install cargo-audit --locked
cargo audit
```

- CI runs stable checks on Linux, macOS and Windows, with MSRV and audit checks on Linux. Audits require the RustSec advisory database.
- Rendering tests parse XML independently and JSON with `serde_json`. They check IDs, offsets, HTML, escaped attributes, enclosures and ordering.
- HTTP tests run a real framework application on an ephemeral loopback socket. They exercise GET, HEAD, fresh loaders, errors and unsupported routes.
- Customization tests use `#[laravel::test(app = create)]`. They cover package-tools defaults and routes, application overrides, model conversion, native MiniJinja views and discovery markup.
- All tests use synthetic entries without production services or a database.

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
