GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add deeper tests for DDApi using ratpack as a mock http server. by tylerbenson · Pull Request #31 · DataDog/dd-trace-java

Conversation

@tylerbenson

@tylerbenson tylerbenson commented Jul 3, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

See https://danhyun.github.io/2016-gr8confus-testing-ratpack-apps/ for more examples with this style of testing.
For more details about spock, see here: http://spockframework.org/spock/docs/1.0/spock_primer.html

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tylerbenson
Add deeper tests for DDApi using ratpack as a mock http server.
b521276
See https://danhyun.github.io/2016-gr8confus-testing-ratpack-apps/ for more examples with this style of testing.
@tylerbenson
tylerbenson requested a review from gpolaert July 3, 2017 22:00
gpolaert
gpolaert reviewed Jul 4, 2017
View reviewed changes

@gpolaert gpolaert left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Tests are fine.

Just question about groovy tests, Should we use groovy?

My concerns are about mixing syntaxes, learning curve and maintenance in the long term.

I think we have to be sure using groove is a huge plus for the project. Otherwise, I think we should have keep only one syntax.

It's just my opinion. Tyler, you will(are ;) ) the lead, so it's your call.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread dd-trace/src/test/groovy/com/datadog/trace/SpanFactory.groovy
import com.datadoghq.trace.DDSpan
import com.datadoghq.trace.DDSpanContext

class SpanFactory {

@gpolaert gpolaert Jul 4, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Definitively a great idea :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tylerbenson

tylerbenson commented Jul 5, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

I totally understand where you're coming from because a year ago I expressed similar opinions to a coworker who was trying to introduce Spock on a project. Eventually I tried it on a project and became a big convert. I find Spock tests to be much more readable and concise. It is also nice using Groovy as it removes a lot of the verbosity usually required by Java. Normally I wouldn't try and push something like this mid way through a project, but we can migrate slowly and the project is still very young.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tylerbenson
tylerbenson merged commit 70e43a1 into master Jul 5, 2017
@tylerbenson
tylerbenson deleted the tyler/testing branch July 5, 2017 15:59
This was referenced May 20, 2025
Extended appsec request/response headers collection #8724
Merged
Send initial telemetry in separate thread to reduce start-up latency. #8818
Merged
Global tags support for Data Streams #8852
Closed
Fix Exception Replay in Lambda #8849
Closed
Test new docker base image #8841
Closed
Migrating all HttpClient Instrumentations to Inject Full Context #8826
Merged
Migrating all HttpServer Instrumentations to Extract full Context #8820
Merged
Upgrade libddwaf java to 14.0.0 #8654
Merged
Added special lightweight pre-main class that skips installation on incompatible JVMs. #8855
Merged
Automatically register crashtracking via native extensions #8851
Merged
Fix Max captured frames for Exception Replay #8856
Merged
Surface process tags in dsm payloads and use them for base hash calculation #8836
Merged
Surface process tags on telemetry payloads #8837
Merged
Improve ServiceTalk Captured Context API Instrumentation for v0.42.56+ #8821
Merged
The Stable Config migration from snakeyaml to the snakeyaml engine to support GraalVM Native #8790
Merged
Enforce size limit on application_monitoring.yaml files #8789
Merged
Extended appsec request body collection #8748
Merged
Support WithSpan inheritContext attribute #8858
Merged
Migrate publishing to Maven Central Portal #8807
Merged
Add support for isDefined in log template #8859
Merged
Bump ddprof-java to 1.26.0 #8860
Merged
HTTP response schema collection and data classification #8840
Closed
Enable ZSTD compression for profiling #8862
Merged
Ensure ClassloadingInstrumentation is always applied even with DD_TRACE_ENABLED=false #8863
Merged
This was referenced Jun 26, 2025
Increase MavenSmokeTest timeout #9040
Merged
Dummy #9041
Closed
Configure Spotless to automatically remove unused imports. #9042
Merged
Update ddapm-test-agent from v1.11.0 to v1.24.1 #9043
Merged
Update the config origin metric to match what it's mapping #9045
Merged
Ensure all response body advices are OnMethodEnter #9046
Merged
Update file probe format #9047
Merged
Add SSI Appsec System tests #9048
Merged
🍒 9019 - Fix NPE in akka-http and pekko-http integrations #9049
Merged
🍒 9032 - Fix ArrayIndexOutOfBoundsException in PercentEscaper #9050
Merged
🍒 9037 - Drop Baggage when TracePropagationBehaviorExtract=IGNORE #9052
Merged
Update Backport Script to not Accept Release Branch Name as Patch Release Name #9053
Merged
🍒 8807 - Migrate publishing to Maven Central Portal #9054
Merged
Increasing timeout to check if it would help. #9057
Closed
[TEST] Test skipping #9059
Closed
llmobs writer updates #9058
Closed
Refactor akka instrumentation modules #9060
Merged
Refactor wildcard imports in config #9063
Merged
Increase CiVis smoke tests timeout #9062
Merged
Create activation origin config for telemetry #9064
Merged
refactor gradle modules for httpclient and httpcore #9065
Merged
Disable legacy Gitlab exec in order to fix jobs failing with green status #9066
Merged
Adding wildcard feature for DD_TRACE_HEADER_TAGS and enabling for Http Response headers #9067
Merged
Perf release gate #9068
Merged
Add comment to re-run Github deployment if Sonatype deployment was re-run #9069
Merged
chore(ci): bump github/codeql-action from 3.29.0 to 3.29.2 in the gh-actions-packages group #9070
Merged
Introduce environment component #9071
Merged
move armeria modules #9073
Merged
Graceful error handling in .gitlab/find-gh-base-ref.sh #9074
Merged
Fix IAST VerifyError on custom StreamReader with super call #9075
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@gpolaert gpolaert gpolaert left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@tylerbenson @gpolaert
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.