Skip to content

Commit

Permalink
Minor: Add note about SQLLancer fuzz testing to docs (#11430)
Browse files Browse the repository at this point in the history
* Minor: Add note about SQLLancer fuzz testing to docs

* prettier
  • Loading branch information
alamb committed Jul 12, 2024
1 parent 1dfac86 commit 13ddbaf
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/source/contributor-guide/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ DataFusion's SQL implementation is tested using [sqllogictest](https://github.co

Like similar systems such as [DuckDB](https://duckdb.org/dev/testing), DataFusion has chosen to trade off a slightly higher barrier to contribution for longer term maintainability.

### Rust Integration Tests
## Rust Integration Tests

There are several tests of the public interface of the DataFusion library in the [tests](https://github.com/apache/datafusion/tree/main/datafusion/core/tests) directory.

Expand All @@ -49,6 +49,18 @@ You can run these tests individually using `cargo` as normal command such as
cargo test -p datafusion --test parquet_exec
```

## SQL "Fuzz" testing

DataFusion uses the [SQLancer] for "fuzz" testing: it generates random SQL
queries and execute them against DataFusion to find bugs.

The code is in the [datafusion-sqllancer] repository, and we welcome further
contributions. Kudos to [@2010YOUY01] for the initial implementation.

[sqlancer]: https://github.com/sqlancer/sqlancer
[datafusion-sqllancer]: https://github.com/datafusion-contrib/datafusion-sqllancer
[@2010youy01]: https://github.com/2010YOUY01

## Documentation Examples

We use Rust [doctest] to verify examples from the documentation are correct and
Expand Down

0 comments on commit 13ddbaf

Please sign in to comment.