Writing Your Specifications
CodeValid turns your specifications into features: what each part of your app should do, written as behavior rules, with tests for each one. You can give CodeValid specifications in four ways:
- Documents you upload (PDF, Word, Markdown or text).
- Files in your repository, such as Markdown files.
- A project management tool: Jira, Zoho Projects or ClickUp.
- Features you write yourself in the app.
When a specification changes, CodeValid updates the features it describes. You can see what changed in Feeds.
1. Upload a document
- Open Features, click New feature and choose Upload document. You can also open Documents under Project in the sidebar.
- Drop a file, or click to choose one. Supported formats: PDF, Word (DOC, DOCX), Markdown and text.
- CodeValid turns the document into features. This usually takes a few minutes.
To remove a document, open Documents, find it in the list and click remove.
2. Use files from your repository
CodeValid reads files in your repository as requirements. Which files it reads is set by Requirement files in Workspace settings → General, for example .md, .mdx.
To edit a repository file in the app:
- Open Documents and choose Repository View.
- Select a file in the Git tree.
- Edit it in the Editor.
- Optionally enter a Commit message, then click Save to repo.
Saving creates a commit on the selected branch of your repository.
3. Use a project management tool
- Connect the tool under Workspace settings → Apps. See the guides for Jira, Zoho and ClickUp.
- Open Documents and choose Project Management Tool to see the synced issues.
- Click Sync PM tools to pull the latest issues.
4. Write a feature yourself
- Open Features, click New feature and choose Create now.
- Enter a Feature title and a Description.
- Add Behavior rules: one rule per expected behavior.
Best Practices for Writing Specifications
Note: To get the best results from CodeValid, follow these guidelines when writing or supplying specifications:
-
Focus on app functionality — Write specifications that clearly describe the behavior and functionality of your application: features, user flows, business rules, and expected outcomes. The more accurately your specs reflect what the app does, the better CodeValid can generate and maintain tests that match your product.
-
Include third-party integration details — If your app integrates with external or third-party systems (APIs, payment gateways, identity providers, etc.), include API reference and integration documentation in your specification set. This helps CodeValid understand contracts, endpoints, and integration behavior so it can generate and maintain tests correctly for both your code and the external interfaces.