OData / OData/ODataConnectedService

E2E testing infrastructure

Open
#409 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Infrastructure P3
Dominant language
C#
Stars
84
Forks
52
Avg merge
8h 39m
Merged PRs (30d)
7

Description

While we do have tests to verify that the generate code looks as expected and compiles without errors, we don't have tests to verify that the code we generate runs as expected. We achieve that using manual testing, which is tedious and not enforced. We should consider setting up automated E2E testing to automate catching issues that we can currently only detect via manual testing.

For example, an E2E test could run the CLI to generate client code based on some schema and settings, add a predefined Program.cs file that calls the generated client code against some test OData service, and verify that the code ran as expected by inspecting the program output.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing generated-code and compilation tests, then trace how the CLI generates client code. Define the scope for running a generated client from a predefined Program.cs against a test OData service and checking its output; done means automated tests cover behavior currently verified manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.