Skip to content
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

Include calculation result in passed tests - Statistical #1193

Closed
vijaykiran opened this issue Mar 28, 2022 · 1 comment
Closed

Include calculation result in passed tests - Statistical #1193

vijaykiran opened this issue Mar 28, 2022 · 1 comment

Comments

@vijaykiran
Copy link
Contributor

A thought: would it be valuable to show the check_value of a statistical calculation when a test passes? I like seeing the value when tests fail. Is that possible?

checks for sodatest_customers_b7580920:
  - min(size) >= 0
  - max(size) <= 5000
  - avg(size) between -5 and 1000
  - sum(distance) = 100
soda scan -d local_postgres_sodasql -c ~/.soda/configuration.yaml -ch checks.yaml
Soda Core 0.0.1
Scan summary:
2/4 checks PASSED: 
    sodatest_customers_b7580920 in local_postgres_sodasql
      max(size) <= 5000 [PASSED]
      avg(size) between -5 and 1000 [PASSED]
2/4 checks FAILED: 
    sodatest_customers_b7580920 in local_postgres_sodasql
      min(size) >= 0 [FAILED]
        check_value: -3.0
      sum(distance) = 100 [FAILED]
        check_value: 4011
Oops! 2 failures. 0 warnings. 0 errors. 2 pass.
@github-actions github-actions bot added this to New in Soda Core Roadmap Mar 28, 2022
@tombaeyens
Copy link
Contributor

tombaeyens commented Mar 31, 2022

--verbose will show the check values also for passing checks

Soda Core Roadmap automation moved this from New to Done Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants