Building an E-commerce Site from Scratch: How to Evaluate AI Coding IDEs with a Unified Testing Framework
AI coding IDEs have evolved from simple code completion to task-level generation, but their real-world capabilities vary widely. This article presents a practical evaluation framework: build the same React e-commerce site from scratch across candidate tools, then score them on five dimensions—task completion, UI/UX, output completeness, code quality, and context management. It also outlines common capability tiers and actionable selection advice for developers.
Building an E-commerce Site from Scratch: How to Evaluate AI Coding IDEs with a Unified Testing Framework
Why You Need a Unified Evaluation Framework
Over the past two years, AI coding tools have evolved from “code completion” to “task-level generation”: developers describe requirements in natural language, and the IDE can generate a runnable project skeleton, page components, or even complete business flows. The market is crowded with AI-powered IDEs of wildly varying quality, and marketing claims or one-off demos rarely reveal their true capabilities.
The most effective way to make an objective judgment is the same task, the same criteria, side-by-side comparison. In other words, assign the same real project to every candidate tool, then evaluate each one against identical scoring dimensions.
The test task chosen for this article is building an e-commerce shopping site from 0 to 1 with React, including the following pages:
- Product detail page
- Product purchase page
- Purchase success page
- Login / registration pages
- User center dashboard
- User center — orders page
- User center — wallet (coupons)
- User center — settings page
An e-commerce site is a good test case because it naturally covers three key checkpoints: many pages (tests task decomposition and sustained generation), flow dependencies (login → browse → order → payment → orders, tests context consistency), and dense interaction details (form validation, state management, responsive layout, tests engineering rigor).
Designing the Evaluation Dimensions
Based on hands-on development experience, we recommend evaluating tools across five dimensions:
1. Task Completion
The core question: can the AI understand and complete the entire task in one pass, or does it need repeated clarification and multiple fix rounds to get things running?
Some IDEs offer “auto-execute” or agent-style modes (such as Craft/Builder), where the model plans steps, generates files, and executes commands on its own. When evaluating, pay close attention to:
- Whether the project starts immediately after the first generation;
- How many self-repair rounds the AI needs after errors;
- Whether structural defects appear, such as missing pages or broken routing.
A common pattern in testing: the project boots after the first generation but contains errors, and it takes 2–3 fix rounds to see the full result. The more repair rounds required, the weaker the model’s self-reflection and debugging ability—and the higher the communication cost in real development.
2. IDE Usability and Interaction
An IDE’s ease of use is easy to overlook, but it directly affects daily productivity:
- Clear layout: are the file tree, chat panel, preview area, and terminal sensibly organized?
- Onboarding: some tools include a guided flow or an assistant persona that lowers the barrier for beginners;
- Privacy mode: enterprise users in particular need to confirm whether their code will be used for model training, and whether privacy protection can be enabled with one click;
- Responsiveness: latency in server-side inference and file generation—lag can seriously break your flow.
3. Completeness of Generated Output
For a multi-page app like an e-commerce site, check every page:
- Is the shopping flow closed-loop (can you go from the detail page all the way to order confirmation)?
- Do forms have basic validation (email format, password strength, required fields)?
- Is the detail page substantive (rather than just a title and a placeholder image)?
- Responsive behavior: does the layout break at mobile viewports? Are there elementary style bugs like white-on-white text or invisible buttons?
Common weaknesses include: all images are placeholders, login/registration pages break on small screens, and mobile gets no responsive treatment at all. These details are exactly what separates “works” from “works well.”
4. Code Quality and Engineering Practices
This dimension best differentiates tools. Check for:
- Separation of styles and logic: is CSS in its own files, or all inlined in components?
- Architectural layering: are hooks, context, and service layers scaffolded—and actually populated, rather than empty directories for show?
- Data decoupling: is mock data separated from component code, or hardcoded in rendering logic?
- Component granularity: are there “god components” running hundreds of lines?
A simple example—good data layer separation looks like this:
// src/api/products.js — data decoupled from componentsexport const fetchProducts = async () => {const res = await mockDb.products.find();return res;};// Components only consume the datafunction ProductList() {const [products, setProducts] = useState([]);useEffect(() => {fetchProducts().then(setProducts);}, []);// ...}
If mock data is hardcoded directly in the ProductList JSX, the cost of integrating a real API later multiplies.
5. Interaction and Context Management
In multi-turn, conversational development, whether the AI remembers earlier design decisions is critical. For example, if the theme colors and directory structure were decided in turn one, does a new page added in turn five stay consistent? Overall coherence—unified color scheme, component reuse, consistent routing style—is the hardest part of the e-commerce test, and where tools differ the most.
Common Capability Tiers
Testing with the framework above, AI coding IDEs currently fall into roughly three tiers:
Tier 1: Completes all pages in one pass, with a closed-loop shopping flow and basic style separation and directory planning; only details (small-screen adaptation, image assets) need manual touch-ups. These tools can already handle prototyping and scaffolding for small-to-mid-sized projects.
Tier 2: Functionally complete, but the first generation often contains errors requiring multiple fix rounds; pages are reasonably complete, but engineering practices lag—empty hooks directories, data coupled to components. Suitable as a learning aid or for quickly validating ideas.
Tier 3: Slow generation, unstable results, obvious style defects (such as invisible buttons), and heavy manual rework—not yet suitable for serious development.
Notably, some tools offer free tiers backed by vendors’ in-house models; others use multi-agent architectures where users must choose their own execution strategy—this brings flexibility, but also decision overhead.
Selection Recommendations
Based on the analysis above, a few practical tips:
- Define your scenario first, then pick the tool: for prototype validation, prioritize task completion and speed; for production development, prioritize code quality and engineering rigor.
- Test with the same small project: spend half a day running candidate tools through a similar CRUD project—it beats reading ten reviews.
- Pay attention to context and privacy: confirm whether the tool supports a privacy mode and keeps your code private—especially important for enterprise use.
- Don’t expect fully automated delivery: at this stage, AI generates a “usable starting point,” not a “launch-ready product.” Human review of architecture, security, and edge cases remains essential.
- Watch the pace of iteration: this space updates monthly, and today’s weakness may be fixed in the next release—retest regularly.
Conclusion
Evaluating an AI coding IDE is essentially measuring the product of “model capability × engineering design × product experience.” Using an e-commerce site built from 0 to 1 as a unified test task quickly exposes a tool’s real strengths in task decomposition, consistency maintenance, and code layering. For developers, rather than chasing any specific product, it’s better to build your own evaluation checklist and keep validating with real projects—letting the tools serve your productivity, instead of being led around by their marketing.
