Skip to content

draft, add smoke-http-specs for smoke tests #6981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

weidongxu-microsoft
Copy link
Contributor

@weidongxu-microsoft weidongxu-microsoft commented Apr 15, 2025

fix #5927

Currently I only add the tsp, not the mockapi.

We can either use service/client added to emitter for the e2e test, or we can still do mockapi (for client emitter; and "knock" for server emitter).

Welcome feedback.

Copy link
Contributor

github-actions bot commented Apr 15, 2025

All changed packages have been documented.

  • @typespec/smoke-http-specs
Show changes

@typespec/smoke-http-specs - feature ✏️

Add smoke-http-specs for smoke test

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 15, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@weidongxu-microsoft weidongxu-microsoft marked this pull request as ready for review May 12, 2025 12:49
@timotheeguerin timotheeguerin marked this pull request as draft May 12, 2025 14:16
@timotheeguerin timotheeguerin marked this pull request as ready for review May 12, 2025 14:17
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the goal of this probject to have the samples we talked about a while ago that every emitter could share?

Copy link
Contributor Author

@weidongxu-microsoft weidongxu-microsoft May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was to include the samples from typespec-e2e.

We've agreed that they should not be spector case. The issue chose to call them smoke test.

I haven't figured out with Allen on what is the best approach is, for matching a generated client and a generated (+handwritten) server for e2e test.

But here I first want to see if I can at least pack the tsp files, so each client can get the lib, generate the code from them, compile/lint the code, as a simpler verification.

Let me know your opinon.

github-merge-queue bot pushed a commit that referenced this pull request May 13, 2025
…atch 0.4.2 (#7145)

fix Azure/autorest.java#3110

tsp source from PR #6981

example POM
```
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>

  <groupId>io.clientcore</groupId>
  <artifactId>tsptest-builtin</artifactId>
  <version>1.0.0-beta.1</version>
  <packaging>jar</packaging>

  <name>SDK for Builtin</name>
  <description>This package contains Builtin client library.</description>
  <url>https://github.com/Azure/azure-sdk-for-java</url>

  <licenses>
    <license>
      <name>The MIT License (MIT)</name>
      <url>http://opensource.org/licenses/MIT</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <scm>
    <url>https://github.com/Azure/azure-sdk-for-java</url>
    <connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
    <developerConnection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</developerConnection>
    <tag>HEAD</tag>
  </scm>
  <developers>
    <developer>
      <id>microsoft</id>
      <name>Microsoft</name>
    </developer>
  </developers>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <dependencies>
    <dependency>
      <groupId>io.clientcore</groupId>
      <artifactId>core</artifactId>
      <version>1.0.0-beta.9</version>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.13.0</version>
        <configuration>
          <release>11</release>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert E2E scenario of PetStore and Todo project for smoke tests
3 participants