[CLI] binary level integration tests
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 9.9k
- Forks
- 734
- Avg merge
- 6h 36m
- Merged PRs (30d)
- 8
Description
Motivation
Currently, we don't have tests on CLI binary for example running sea-orm-cli generate entity --options --flags then validate the behaviour of the command.
Without it, naive mistakes will be made, such as https://github.com/SeaQL/sea-orm/issues/1250.
Proposed Solutions
The CLI now has two main functionality, generate entity files and run migration. We could test both at the same time. Strat with running migration, then follow by generating entity files against the database schema with the applied migrations.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the sea-orm-cli entry points for migration and entity generation, then review any existing CLI or integration test setup. Run migrations first, generate entity files from the resulting database schema, and validate that both commands work together across the supported CLI flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, databases, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100