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.

Does this only record YAML or it can actually assert something?

See original GitHub issue

In all the examples and the blog post, I can’t see any asserts, only recording… How can this actually be used to build test cases and assert based on the performance records? (like numQueries)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adamchainzcommented, Sep 30, 2016

Yes that’s exactly the workflow we use. I’ll improve the README later.

0reactions
littlepeacommented, Sep 30, 2016

So how is the baseline set? If there’s no existing record, then record and PASS, if there is a record and it’s the same also PASS, if there is a record and it’s different then FAIL?

What if it’s different but on purpose? I should delete the YAML file and rerun to PASS?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing Rails Applications - Ruby on Rails Guides
An assertion is a line of code that evaluates an object (or expression) for expected results. For example, an assertion can check: does...
Read more >
How to Use JMeter Assertions in Three Easy Steps - BlazeMeter
JMeter assertions are undeniably valuable, providing the criteria you set to determine whether the a will be considered a “pass.
Read more >
Object graph comparison - Fluent Assertions
By default, Fluent Assertions respects an object's or member's declared (compile-time) type when selecting members to process during a recursive comparison.
Read more >
Unit Testing SQL in dbt · Discussion #4455 - GitHub
For each YAML file under the expected_output directory (which must be named after a table in the database), assert that each record exists...
Read more >
Language Tour - Dhall Documentation
This tutorial assumes that you have already completed the JSON/YAML tutorial: ... If you enter only test.dhall then the command will fail with...
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