question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add examples of testing for each language

See original GitHub issue

Include examples in https://cdk8s.io/docs/latest/examples/ for each language of how to use the testing framework.

Suggested by @Hunter-Thompson:

can we also have a small example of how a test would look like for Go?

To convert the following in Go.

  const app = Testing.app();
  const chart = new Chart(app, 'test');

  new Deployment(chart, 'test', {

  });


  expect(Testing.synth(chart)).toMatchSnapshot();

Related: https://github.com/cdk8s-team/cdk8s-core/issues/35

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Hunter-Thompsoncommented, Oct 17, 2021

keep

0reactions
github-actions[bot]commented, Feb 7, 2022

Closing this issue as it hasn’t seen activity for a while. Please add a comment @mentioning a maintainer to reopen. If you wish to exclude this issue from being marked as stale, add the “backlog” label.

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 Basic Tips for Testing Multi-Lingual Websites
Nowadays many websites are deployed in multiple languages. ... Execute the test cases in the English version of the site a number of...
Read more >
How to write your first Unit Test | In Different programming ...
Run the test case:​​ Java: The second most used language is Java. Thanks to a tool like Gradle, The setup has become so...
Read more >
Testing languages | MPS - JetBrains
Testing is an essential part of language designer's work. To be of any good MPS has to provide testing facilities both for BaseLanguage...
Read more >
How to Write Test Cases for Software: Examples & Tutorial
Learn how to write test cases for different types of testing including functionality, usability and security. Discover best practices in ...
Read more >
Add a test - The Go Programming Language
Create two test functions to test the greetings.Hello function. Test function names have the form TestName , where Name says something about the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found