[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C2MY48XXHR87G39R0F0VTK":3,"skill-same:01M7C2MY48XXHR87G39R0F0VTK":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7C2MY48XXHR87G39R0F0VTK","testing",null,"Use when a Denodo 9.5 project needs regression tests, or its tests need running or fixing — .denodotest files that the Denodo Testing Tool runs in CI (%EXECUTION, %RESULTS[data|query|csv|exception], configuration.properties, denodo-test.sh) — \"add tests for this mart\", \"a safety net before I rewrite these views\", \"make sure the dashboards see no difference\", \"what should CI check on our data products\", \"prove the mart is right\", \"CI is red on the Denodo tests\", a test that fails on row order, on a column it did not ask for or on a value padded with spaces. Not for checking a new view once, right after creating it — \u002Fdenodo:views.","kirivandubai\u002Fdenodo_wipe_coading_skills","kirivandubai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221521416?v=4","01M7C2HC9KETA166XKR09YMKZQ","01M7C2HCAJ787NNYKMCG12S3DY",0,"MIT","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: testing\ndescription: Use when a Denodo 9.5 project needs regression tests, or its tests need running or fixing — .denodotest files that the Denodo Testing Tool runs in CI (%EXECUTION, %RESULTS[data|query|csv|exception], configuration.properties, denodo-test.sh) — \"add tests for this mart\", \"a safety net before I rewrite these views\", \"make sure the dashboards see no difference\", \"what should CI check on our data products\", \"prove the mart is right\", \"CI is red on the Denodo tests\", a test that fails on row order, on a column it did not ask for or on a value padded with spaces. Not for checking a new view once, right after creating it — \u002Fdenodo:views.\nallowed-tools: Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdenodo *)\n---\n\n# Regression tests with the Denodo Testing Tool\n\nThe suite is a folder of `.denodotest` files in the project, beside the `.vql` it tests, and\n**Denodo's own Testing Tool runs it** — in the team's CI and here. The plugin has no runner of\nits own: it writes the tests and starts the tool with `testing run`, which gives the tool its\nconfiguration from the profile. The tool is a download from the Denodo support site (Denodo Connects) that\nneeds Java 17 or later; when the human has not said where it is, ask — never download or\ninstall it yourself.\n\nThe checks themselves are the ones `\u002Fdenodo:views` makes when it creates a view — a mart's\ntotals against its input, a unique key, nothing `INVALID`, the contract's columns, a query that\nruns in its database — kept in files so that every later change is checked the same way. The\nformat in full, with every behaviour measured, is `references\u002Fformat.md`.\n\n**A test is worth what it can catch, and three things make one worthless without a sign:**\n\n1. **A copy of today's output proves only that nothing changed.** If today's output is wrong,\n   the copy locks the mistake in, and the suite is green over a broken mart. Tests that prove a\n   mart *right* compare it with its input; a copy of its rows comes after those pass.\n2. **A test that cannot fail.** Rows compared in an order the query does not fix, a subset of\n   nothing, a query that finds no rows because it names the wrong database, a file whose name\n   does not end in `.denodotest` — each passes, or is skipped, whatever the views do.\n3. **A red test turned green by editing what it expects.** A failure is a finding about the\n   views or about the test, and which one is established before anything is edited.\n\n## Where the tests live\n\n```\ndenodo\u002Fsales_analytics\u002F\n  00_database.vql\n  01_connectivity.vql\n  02_views.vql\n  tests\u002F\n    household_income_by_band_counts_every_household.denodotest\n    iv_household_income_key_is_unique.denodotest\n    sales_analytics_has_no_invalid_view.denodotest\n    household_income_contract.denodotest\n    household_income_by_band_rows.denodotest\n    expected\u002F                      ← CSV files of expected rows, when inline data is too long\n```\n\nA project whose `.vql` files sit directly in `denodo\u002F` keeps them in `denodo\u002Ftests\u002F`.\n\n- One check per file, the file named like its `%NAME`, and a `#` line on top that says what the\n  check proves — that line is what the human reads when it fails. The `# verified:` line of the\n  templates below is this plugin's own mark: leave it out of the project's tests. Any other file\n  in the folder (a `README.md`, the expected CSVs) is skipped by the tool.\n- `{ds:vdp}` on every `%EXECUTION`, `%RESULTS[query]`, `%SETUP` and `%TEARDOWN`, and view names\n  unqualified: the database is the configuration's (`--database` below), so the same files run\n  against every environment. Write the database name only where a procedure takes it\n  (`GET_VIEWS()`, `GET_VIEW_COLUMNS()`). Such a test reads that database whatever `--database`\n  says: run against another database, it still checks the named one, and where none of that\n  name exists it fails — the procedure raises an error, it does not answer no rows (measured\n  against 9.5.1).\n- No `configuration.properties`, no wrapper script and no password in the project. The CI\n  pipeline writes its own configuration from its secret store (**Running it**, below).\n\n## Templates\n\n`sales_analytics` holds the views of `\u002Fdenodo:views`: `iv_household_income` joins\n`bv_household_demographics` to `bv_income_band`, `household_income_by_band` aggregates it per\nband, `household_income` is the interface view in front of it. Each block is one file of the\n`tests\u002F` folder.\n\n### The mart counts every input row once\n\n```text\n# verified: 9.5.1 (live, 2026-10-06)\n# Every household is counted once, in its band: a join that drops or doubles rows fails here.\n%NAME household_income_by_band_counts_every_household\n%EXECUTION[query] {ds:vdp}\nSELECT SUM(household_count) AS household_count\nFROM household_income_by_band\n%RESULTS[query] {ds:vdp}\nSELECT COUNT(*) AS household_count\nFROM bv_household_demographics\n```\n\n- **This is the test that proves a mart right**, and the first one a mart gets. Both sides are\n  queries, so it holds on any environment and after any load; no number is written down. Add a\n  measure next to the count (`SUM(amount)` on both sides) when the mart sums one.\n- Columns are matched **by name**: both queries give the same aliases, or the test fails on the\n  header before any value is compared.\n- When rows are dropped on purpose — a filter, an inner join the `DESCRIPTION` explains — the\n  `%RESULTS` query applies the same condition, so the test states the decision instead of\n  hiding it. When rows are dropped that nothing explains, write two tests: the rows that should\n  match (with the condition) and every row (without it). The first is free to catch other\n  defects, the second stays red until the human decides.\n- **When the mart's grouping key comes from the input itself** (a foreign key of the fact),\n  compare per group instead of the grand total — the mart's key and figures against `GROUP BY`\n  that key on the input — for the same cost: it also catches a group split in two and rows that\n  moved between groups.\n- **A label for the rows without a match** (`COALESCE(region_name, '(no region)')` over a `LEFT\n  JOIN`) gets a test of its own: no row of the mart carries the label with a key that is not\n  `NULL` — a key with no row in the dimension lands there silently (`\u002Fdenodo:views`). It is the\n  first test a new source for the dimension fails.\n\n### The key is unique\n\n```text\n# verified: 9.5.1 (live, 2026-10-06)\n# Denodo does not enforce a primary key: a duplicated household doubles every figure above it.\n%NAME iv_household_income_key_is_unique\n%EXECUTION[query] {ds:vdp}\nSELECT household_sk, COUNT(*) AS row_count\nFROM iv_household_income\nGROUP BY household_sk\nHAVING COUNT(*) > 1\n%RESULTS[data]\nhousehold_sk,row_count\n```\n\nThe same test goes on **every view the mart joins to**, not only on the mart: a dimension that\nkeeps history has several rows per business key, and a join on that key multiplies every\nfigure above it.\n\nExpected data with only its header line means \"no rows\"; how to break such a test is in **Prove\nthat each test can fail**, below.\n\n### Nothing in the database is broken\n\n```text\n# verified: 9.5.1 (live, 2026-10-06)\n# A view whose column went away underneath turns INVALID with no error anywhere.\n%NAME sales_analytics_has_no_invalid_view\n%EXECUTION[query] {ds:vdp}\nSELECT name\nFROM GET_VIEWS()\nWHERE input_database_name = 'sales_analytics'\n  AND input_retrieve_invalid_views_only = true\n%RESULTS[data]\nname\n```\n\nA view built on an `INVALID` one stays `OK` and fails on `SELECT`: this test names the first\nbroken view, the other tests of the suite fail on the rest. The same shape checks associations —\n`SELECT association_name FROM GET_ASSOCIATIONS() WHERE input_database_name = 'sales_analytics'\nAND input_type = 'views' AND valid = false` — *verified: 9.5.1 (live, 2026-10-05)*.\n\n### The contract the consumer reads\n\n```text\n# verified: 9.5.1 (live, 2026-10-06)\n# What a client of household_income sees: the columns, their order and their types.\n%NAME household_income_contract\n%EXECUTION[query] {ds:vdp}\nSELECT ordinal_position, column_name, column_vdp_type\nFROM GET_VIEW_COLUMNS()\nWHERE input_database_name = 'sales_analytics'\n  AND input_view_name = 'household_income'\nORDER BY ordinal_position\n%RESULTS[data]\nordinal_position,column_name,column_vdp_type\n1,household_sk,int\n2,income_band_sk,int\n3,buy_potential,text\n4,dependents,int\n5,vehicles,int\n6,income_lower_bound,int\n7,income_upper_bound,int\n```\n\nThe data tests cannot see a column moved, retyped or added: the tool matches columns by name\nand compares numbers by value. This one can, and it is the test a rename or a new column fails\nfirst — on purpose: the contract changed, and the human says whether it should.\n`input_view_name` is a `LIKE` pattern (`_` matches any character); one view per test, with `=`:\n`input_view_name IN ( … )` answers no rows and no error, which a \"no rows\" test would read as a\npass.\n\n### The rows the consumer reads\n\nThe expected rows below are what the TPC-DS sample data gives; a suite of yours carries what\nyour server answers (\"Expected values\", below).\n\n```text\n# verified: 9.5.1 (live, 2026-10-06)\n# The mart as the dashboards read it, ordered by its key. Taken after the count test passed.\n%NAME household_income_by_band_rows\n%EXECUTION[query] {ds:vdp}\nSELECT income_band_sk, income_lower_bound, income_upper_bound, household_count, avg_dependents\nFROM household_income_by_band\nORDER BY income_band_sk\n%RESULTS[data]\nincome_band_sk,income_lower_bound,income_upper_bound,household_count,avg_dependents\n1,0,10000,360,4.5\n2,10001,20000,360,4.5\n3,20001,30000,360,4.5\n4,30001,40000,360,4.5\n5,40001,50000,360,4.5\n6,50001,60000,360,4.5\n7,60001,70000,360,4.5\n8,70001,80000,360,4.5\n9,80001,90000,360,4.5\n10,90001,100000,360,4.5\n11,100001,110000,360,4.5\n12,110001,120000,360,4.5\n13,120001,130000,360,4.5\n14,130001,140000,360,4.5\n15,140001,150000,360,4.5\n16,150001,160000,360,4.5\n17,160001,170000,360,4.5\n18,170001,180000,360,4.5\n19,180001,190000,360,4.5\n20,190001,200000,360,4.5\n```\n\n- **Name the columns and `ORDER BY` the key.** Inline data is compared in order, so a query\n  without `ORDER BY` fails on its first row — or passes today and fails after the next change of\n  plan. `SELECT *` fails the day a column is added, with the numbers unchanged. A key with a\n  `NULL` row (the group of a `LEFT JOIN`) sorts by `CASE WHEN k IS NULL THEN 1 ELSE 0 END, k`:\n  where the sort runs — Denodo, or the database it is delegated to — decides where `NULL`\n  lands.\n- This test pins **today's data**: it fails after a reload of the sources and on an environment\n  with other data. Keep it for the refactor it protects — \"the rewrite changes nothing\" — and\n  say so in its `#` line; the count test is the one that stays true.\n- Past a few dozen rows, the expected rows go into a file: `%RESULTS[csv]\n  file:expected\u002F\u003Cname>.csv`, the same CSV with its header, relative to the test.\n\n### A view over a database runs in the database\n\n```text\n# verified: 9.5.1 (live, 2026-10-06)\n# The mart is one SQL statement in the warehouse: no expression left in Denodo, no second source.\n%NAME household_income_by_band_runs_in_the_database\n%EXECUTION[query] {ds:vdp}\nSELECT COUNT(*) AS plans_not_delegated\nFROM GET_QUERY_EXECUTION_PLAN()\nWHERE input_query = 'SELECT * FROM household_income_by_band'\n  AND (execution_plan LIKE '%noDelegationCause%'\n       OR execution_plan LIKE '%JDBC ROUTE (%JDBC ROUTE (%')\n%RESULTS[data]\nplans_not_delegated\n0\n```\n\nFor a mart whose base views are JDBC (`\u002Fdenodo:views`, Silent failure 3): a `MEDIAN` or a cast\nthe database cannot run, or a second data source, turns the answer to `1` — nothing else\nreports it. The query is planned, not run. Quotes inside `input_query` are doubled. `%TRACE`\ndoes not replace this test: against 9.5.1, with the Testing Tool release it was measured with,\nit failed every test it was in (`references\u002Fformat.md`).\n\n## Expected values: from the server, after the checks pass\n\nNever type an expected value from what the data \"should\" be, and never take one from a view\nwhose count test has not passed. Run the test's own query — `vql run --env dev --database\nsales_analytics -e \"\u003Cthe %EXECUTION query>\" --max-rows 500` — and write the rows as the tool\ncompares them:\n\n| The value | Write it |\n|---|---|\n| `NULL` | an empty field. The tool cannot tell `NULL` from `''` — select `x IS NULL AS x_is_null` when it matters |\n| text | exactly, case and spaces included; text may arrive padded to its column width (a `CHAR(n)` column, a file that pads its fields) — `TRIM` in the query rather than quoting padding an editor will strip |\n| text with a comma or a quote, starting with `#` or a space | quoted: `\"a, b\"`, `\"#1\"`; a `\"` inside doubled. **An unquoted line starting with `#` is a comment and its row is gone** |\n| `${` | `\\${` — in the query too |\n| `decimal`, `int`, `long` | as `vql run` prints them; `12.50` equals `12.5` |\n| `double` (an `AVG`, a ratio) | round it in the query — `ROUND(AVG(x), 2)` — never its full digits |\n| `localdate` | `2024-03-05` |\n| `timestamp` | format it in the query, `FORMATDATE('yyyy-MM-dd HH:mm:ss', ts) AS ts`, and write the text: the tool prints a `timestamp` in its own time zone and wants `.SSS` |\n| `boolean` | `true`, `false` |\n\n## Prove that each test can fail\n\nRun each new test once **broken on purpose**, on a copy of the folder, outside the project,\nunder a fresh name — one expected value changed, `HAVING COUNT(*) > 0` for a \"no rows\" test,\n`input_retrieve_invalid_views_only = false` in the `GET_VIEWS()` test (it then lists the\ndatabase's views, which proves the name finds them) — run the copy and see every test fail with\nthe message you expect (`testing run` on the copy's folder). A test that passes both ways checks\nnothing. An edited test that already fails against a regressed view has shown it can fail; see\nit pass against the fixed definition (**When a test fails**, below). So does a test that is\nred the day it is written: its expected side is proved only by passing against a definition\nthat is right. Then run the folder itself and read it as **Verify** says.\n\n## Running it\n\n```\n${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdenodo testing run --env dev --database sales_analytics \\\n    --tool \u003Cwhere the Testing Tool was unzipped> --java-home \u003CJava 17+> denodo\u002Fsales_analytics\u002Ftests\n```\n\nstarts the Denodo Testing Tool's `bin\u002Fdenodo-test.sh` through `bash` on the folder (or one\nfile) with a temporary configuration from the profile, and answers with one JSON document —\n`exit_code`, `summary` (`run`, `ok`, `failed`, `zero_tuple`), each test with its `status` and\n`message`, `test_files` (the `.denodotest` files it found), and on a failure `output_tail`, the\nlast lines the tool printed.\n`--tool` defaults to `DENODO_TESTING_TOOL_HOME`, `--java-home` to the environment's `JAVA_HOME`.\n\n- **`ok: true` (exit `0`) needs the tool's exit code `0` and every test of the summary OK.** A\n  run without a summary — a usage message, a Java stack trace — is a failure, and `warning`\n  says when fewer tests ran than there are files: a misnamed one was skipped.\n- The tests connect to `--database`; the JDBC port is the profile's `jdbc_port`, 9999 when the\n  profile names none — not its `port`, which is the ODBC one.\n- The tests run as the profile's user — often an administrator, whom no security policy\n  restricts: a test of what a restricted person sees impersonates them (`\u002Fdenodo:security`).\n\n**When the human runs the tool themselves** — their terminal, a scheduled job on their machine —\n`testing config --env dev --database sales_analytics` writes the same configuration to a lasting\nfile beside the profiles file (`\u003Cprofiles dir>\u002Ftesting\u002F\u003Cenv>\u002F\u003Cdatabase>.properties`, 0600) and\nanswers with its `path`, never the password; it refuses a path inside a git work tree the\nrepository does not ignore. Give them the launcher line, from the tool's own `bin\u002F` — the tool\nlogs to `..\u002Flog` of wherever it starts — with absolute paths and `bash`, because the launcher\ncomes out of the zip without its execute bit:\n\n```\ncd \"\u003Ctool home>\u002Fbin\" && JAVA_HOME=\u003Cjava 17+> bash denodo-test.sh file:\u003Cpath from testing config> file:\u003Cabsolute path of tests\u002F>\n```\n\nOn Windows, in `cmd`:\n\n```\ncd \u002Fd \"\u003Ctool home>\\bin\" && set \"JAVA_HOME=\u003Cjava 17+>\" && denodo-test.bat file:\u003Cpath from testing config> file:\u003Cabsolute path of tests>\n```\n\nNever open that file and never put its path into a command of yours: run the tests with\n`testing run`. The launcher exits `0` after printing its usage when an argument is missing, so\nwhoever runs it reads the summary — `Tests run: N, OK: M (FAILED: K)` — not only the exit code.\n`ERROR DriverDataSource … Failed to load class of driverClassName` at its start is noise.\n\n**For CI**, tell the human what the pipeline needs, and write none of it into the repository:\na configuration file with the keys `testing config` writes (`references\u002Fformat.md`), made by the\npipeline from its own secret store, for a user that may only read the project's database; the\nsame launcher line; and a failed run when the summary is missing. If the repository already\nholds a configuration with a password in it, say so: it has to leave git, and the password has\nto change. Leave the file where it is — CI may still read it — and do not print it.\n\n## When a test fails\n\n| The message | What it says | What to do |\n|---|---|---|\n| `Expected data columns\u002Fheaders do NOT match … expected [[a, b]] but obtained [[a, b, c]]` | the query returns other columns than the expected data names — a `SELECT *` over a view that gained one, or a renamed column | `SELECT *` in a test is the bug: name the columns. A renamed or removed column is a change of the contract: the human's call |\n| `Row 1, col 1 of the obtained result contained [x], but [y] was expected` in a `[data]` or `[csv]` test, and `y` is further down the obtained rows | order, not data | `ORDER BY` the key in the query. In a `[query]` against `[query]` the same message is a row lost or gained — compare the row counts first |\n| `Row n, col m … contained [x], but [y] was expected` | a value changed — or, in an unordered `[query]` against `[query]`, a row too many or too few: both sides are sorted and compared row by row | **establish which side is right before touching either** (below) |\n| `Obtained n rows, but some of the expected m rows were not found` \u002F `Expected results are only a subset … Obtained n rows, but expected m` | rows appeared or went missing. On a \"no rows\" test (`… but expected 0`) the check found what it looks for — duplicated keys, broken views | the count test says whether the mart still holds every input row; then as above |\n| `Test raised an unexpected java.sql.SQLException: …` | the query itself fails: a view gone, renamed or `INVALID` | `GET_VIEWS(… invalid only)`; the views' own history |\n| `… contains variables so context variables cannot be null` | a `${` in the test | `\\${` |\n\n**A value changed: which side is right.** Find what changed — `git log -p` of the `.vql`, and\nthe server against the file (`DESC VQL VIEW \u003Cview> ('includeDependencies' = 'no',\n'dropElements' = 'no')`), because the view on the server may not be the one in git. Re-run the count test and compare the inputs\nyourself. Then:\n\n- the test was wrong (an order it relied on, a padded value, an unrounded double) — fix the\n  test, and say what was wrong with it. **Both can be true at once**: a `SELECT *` without an\n  `ORDER BY` over a view that also lost a row. Harden the test, and then it must still fail —\n  for the real reason only;\n- the views changed the answer — a label, a group, a total — **report it, and leave the test\n  failing**: whether the new answer is intended is the human's decision. The view's own\n  `DESCRIPTION` is evidence: a change that contradicts it is a regression until the human says\n  otherwise.\n- **Fixing the view is not fixing the test.** Re-applying a view that existed before this\n  session changes what every reader of it gets — the dashboard, the report, the other views —\n  and a request about tests does not cover changing a view, even one your project declares.\n  Put the fix into the `.vql` file, say what it changes, and leave applying it to the human's\n  yes. When the fix itself needs a decision the human has not made, describe the options in the\n  message instead of choosing one in the file.\n- **Show that the fix turns the suite green without applying it**: a copy of the suite outside\n  the project, with the view's name replaced by the fixed definition as a subquery — `FROM\n  ( SELECT … ) m` — run with `testing run`. It reads only, and it proves the\n  definition, not the deployed view; say both in the message.\n- **Say what happens if nobody acts**: when the human named a date — a report, a release — the\n  message says what that date gets from the server as it is now.\n\n| Rationalization | Reality |\n|---|---|\n| \"The numbers didn't change, the test is just out of date — regenerate the expected rows from today's output\" | Regenerating turns any change, intended or not, into the new truth. Find which side moved first. |\n| \"It was surely an accident \u002F the human is away and the deadline is close — I'll restore or fix the view so CI is green\" | That changes what the view's readers get, and nobody asked you to: the finding, the fix in the file and a red suite that says why are the answer; the yes is theirs. |\n| \"A snapshot of today's figures is a useful test too — it passes today\" | It passes today *because* it copies today's mistakes. Rows are pinned after the count test passes, or the defect is pinned with them. |\n| \"`type:subset` is enough here\" | It passes with any extra rows, fails on unsorted results unless `ordered:false`, and passes against anything with no expected rows. Use it for a known part of a large result, never to quiet a failure. |\n| \"I need the password for the configuration — I'll load it through the plugin's profile loader, or write a `run-tests.sh` that builds the file from environment variables\" | `testing run` gives the tool its configuration from the profile; neither you nor a command line ever holds the password, and the project gets no runner to maintain. |\n| \"There is no password I may read, so the tests cannot run — I'll leave them unrun\" | `testing run` is the way to run them. A suite that never ran has proved nothing, not even that it parses. |\n| \"The repository already has a configuration with the password, and CI uses it\" | Run with `testing run`, and tell the human: the file has to leave git and the password has to change. |\n\n## Safety\n\nThe Testing Tool runs whatever a test holds — `%SETUP`, `%TEARDOWN`, an `%EXECUTION[script]` —\non the server of its configuration, **past the classifier every other command of this plugin\napplies**. So:\n\n- **A suite reads.** `%EXECUTION[query]` and `%RESULTS[query]` with a `SELECT`, and nothing\n  else, is what this skill writes. A test that needs data or objects of its own is a fixture in\n  the project's own database, created by a `.vql` file through `\u002Fdenodo:execute` like any other\n  object — not by a `%SETUP`.\n- **A suite you did not write is a file of statements**: read every `%SETUP`, `%TEARDOWN` and\n  script before running it. Running one that changes state is applying VQL — `\u002Fdenodo:vql`'s\n  table decides who runs it.\n- **A failed `%SETUP` statement skips the `%TEARDOWN`** of its test, and so does a failing\n  `%RESULTS` query: whatever the setup created stays on the server — *verified: 9.5.1 (live,\n  2026-10-05)*.\n- On a profile marked `production`, `testing run` and `testing config` refuse without\n  `--allow-destructive`.\n  Show the human what the suite runs; the flag comes after their yes, as everywhere in this\n  plugin (`\u002Fdenodo:execute`).\n\n**Red flags — stop:** you are about to change an expected value to what the server returns now;\na test passes and you have not seen it fail; a password, a `configuration.properties` or a\nscript that builds one is about to enter the project; you are reading the profiles file, or\nopening or naming in a command the file `testing config` wrote; a suite you are about to run\nhas a `%SETUP` or a `%TEARDOWN`; `env.production` is `true`.\n\n## Verify\n\n| Question | Read-back |\n|---|---|\n| Did every test run | `summary.run` equals `test_files`, and there is no `warning` |\n| Did they pass | `ok: true` |\n| Did the data tests see data | `summary.zero_tuple` equals the number of \"no rows\" tests; one more means a data test compared nothing |\n| Can each new test fail | the broken run of **Prove that each test can fail**, one per test |\n| Is the project clean | `git status`: no configuration file, no `log\u002F` folder, no `#denodo-failed-tests-execution.metafile` |\n\n## Reference\n\n- `references\u002Fformat.md` — the format in full: files, folders and order, every directive and\n  qualifier, parsing traps, the comparison rules measured case by case, expected errors,\n  variables and inheritance, `%SETUP`\u002F`%TEARDOWN`, the trace, the launcher's exit codes, the\n  configuration file and its keys.\n","# Regression tests with the Denodo Testing Tool\n\nThe suite is a folder of `.denodotest` files in the project, beside the `.vql` it tests, and\n**Denodo's own Testing Tool runs it** — in the team's CI and here. The plugin has no runner of\nits own: it writes the tests and starts the tool with `testing run`, which gives the tool its\nconfiguration from the profile. The tool is a download from the Denodo support site (Denodo Connects) that\nneeds Java 17 or later; when the human has not said where it is, ask — never download or\ninstall it yourself.\n\nThe checks themselves are the ones `\u002Fdenodo:views` makes when it creates a view — a mart's\ntotals against its input, a unique key, nothing `INVALID`, the contract's columns, a query that\nruns in its database — kept in files so that every later change is checked the same way. The\nformat in full, with every behaviour measured, is `references\u002Fformat.md`.\n\n**A test is worth what it can catch, and three things make one worthless without a sign:**\n\n1. **A copy of today's output proves only that nothing changed.** If today's output is wrong,\n   the copy locks the mistake in, and the suite is green over a broken mart. Tests that prove a\n   mart *right* compare it with its input; a copy of its rows comes after those pass.\n2. **A test that cannot fail.** Rows compared in an order the query does not fix, a subset of\n   nothing, a query that finds no rows because it names the wrong database, a file whose name\n   does not end in `.denodotest` — each passes, or is skipped, whatever the views do.\n3. **A red test turned green by editing what it expects.** A failure is a finding about the\n   views or about the test, and which one is established before anything is edited.\n\n## Where the tests live\n\n```\ndenodo\u002Fsales_analytics\u002F\n  00_database.vql\n  01_connectivity.vql\n  02_views.vql\n  tests\u002F\n    household_income_by_band_counts_every_household.denodotest\n    iv_household_income_key_is_unique.denodotest\n    sales_analytics_has_no_invalid_view.denodotest\n    household_income_contract.denodotest\n    household_income_by_band_rows.denodotest\n    expected\u002F                      ← CSV files of expected rows, when inline data is too long\n```\n\nA project whose `.vql` files sit directly in `denodo\u002F` keeps them in `denodo\u002Ftests\u002F`.\n\n- One check per file, the file named like its `%NAME`, and a `#` line on top that says what the\n  check proves — that line is what the human reads when it fails. The `# verified:` line of the\n  templates below is this plugin's own mark: leave it out of the project's tests. Any other file\n  in the folder (a `README.md`, the expected CSVs) is skipped by the tool.\n- `{ds:vdp}` on every `%EXECUTION`, `%RESULTS[query]`, `%SETUP` and `%TEARDOWN`, and view names\n  unqualified: the database is the configuration's (`--database` below), so the same files run\n  against every environment. Write the database name only where a procedure takes it\n  (`GET_VIEWS()`, `GET_VIEW_COLUMNS()`). Such a test reads that database whatever `--database`\n  says: run against another database, it still checks the named one, and where none of that\n  name exists it fails — the procedure raises an error, it does not answer no rows (measured\n  against 9.5.1).\n- No `configuration.properties`, no wrapper script and no password in the project. The CI\n  pipeline writes its own configuration from its secret store (**Running it**, below).\n\n## Templates\n\n`sales_analytics` holds the views of `\u002Fdenodo:views`: `iv_household_income` joins\n`bv_household_demographics` to `bv_income_band`, `household_income_by_band` aggregates it per\nband, `household_income` is the interface view in front of it. Each block is one file of the\n`tests\u002F` folder.\n\n### The mart counts every input row once\n\n```text\n# verified: 9.5.1 (live, 2026-10-06)\n# Every household is counted once, in its band: a join that drops or doubles rows fails here.\n%NAME household_income_by_band_counts_every_household\n%EXECUTION[query] {ds:vdp}\nSELECT SUM(household_count) AS household_count\nFROM household_income_by_band\n%RESULTS[query] {ds:vdp}\nSELECT COUNT(*) AS household_count\nFROM bv_household_demographics\n```\n\n- **This is the test that proves a mart right**, and the first one a mart gets. Both sides are\n  queries, so it holds on any environment and after any load; no number is written down. Add a\n  measure next to the count (`SUM(amount)` on both sides) when the mart sums one.\n- Columns are matched **by name**: both queries give the same aliases, or the test fails on the\n  header before any value is compared.\n- When rows are dropped on purpose — a filter, an inner join the `DESCRIPTION` explains — the\n  `%RESULTS` query applies the same condition, so the test states the decision instead of\n  hiding it. When rows are dropped that nothing explains, write two tests: the rows that should\n  match (with the condition) and every row (without it). The first is free to catch other\n  defects, the second stays red until the human decides.\n- **When the mart's grouping key comes from the input itself** (a foreign key of the fact),\n  compare per group instead of the grand total — the mart's key and figures against `GROUP BY`\n  that key on the input — for the same cost: it also catches a group split in two and rows that\n  moved between groups.\n- **A label for the rows without a match** (`COALESCE(region_name, '(no region)')` over a `LEFT\n  JOIN`) gets a test of its own: no row of the mart carries the label with a key that is not\n  `NULL` — a key with no row in the dimension lands there silently (`\u002Fdenodo:views`). It is the\n  first test a new source for the dimension fails.\n\n### The key is unique\n\n```text\n# verified: 9.5.1 (live, 2026-10-06)\n# Denodo does not enforce a primary key: a duplicated household doubles every figure above it.\n%NAME iv_household_income_key_is_unique\n%EXECUTION[query] {ds:vdp}\nSELECT household_sk, COUNT(*) AS row_count\nFROM iv_household_income\nGROUP BY household_sk\nHAVING COUNT(*) > 1\n%RESULTS[data]\nhousehold_sk,row_count\n```\n\nThe same test goes on **every view the mart joins to**, not only on the mart: a dimension that\nkeeps history has several rows per business key, and a join on that key multiplies every\nfigure above it.\n\nExpected data with only its header line means \"no rows\"; how to break such a test is in **Prove\nthat each test can fail**, below.\n\n### Nothing in the database is broken\n\n```text\n# verified: 9.5.1 (live, 2026-10-06)\n# A view whose column went away underneath turns INVALID with no error anywhere.\n%NAME sales_analytics_has_no_invalid_view\n%EXECUTION[query] {ds:vdp}\nSELECT name\nFROM GET_VIEWS()\nWHERE input_database_name = 'sales_analytics'\n  AND input_retrieve_invalid_views_only = true\n%RESULTS[data]\nname\n```\n\nA view built on an `INVALID` one stays `OK` and fails on `SELECT`: this test names the first\nbroken view, the other tests of the suite fail on the rest. The same shape checks associations —\n`SELECT association_name FROM GET_ASSOCIATIONS() WHERE input_database_name = 'sales_analytics'\nAND input_type = 'views' AND valid = false` — *verified: 9.5.1 (live, 2026-10-05)*.\n\n### The contract the consumer reads\n\n```text\n# verified: 9.5.1 (live, 2026-10-06)\n# What a client of household_income sees: the columns, their order and their types.\n%NAME household_income_contract\n%EXECUTION[query] {ds:vdp}\nSELECT ordinal_position, column_name, column_vdp_type\nFROM GET_VIEW_COLUMNS()\nWHERE input_database_name = 'sales_analytics'\n  AND input_view_name = 'household_income'\nORDER BY ordinal_position\n%RESULTS[data]\nordinal_position,column_name,column_vdp_type\n1,household_sk,int\n2,income_band_sk,int\n3,buy_potential,text\n4,dependents,int\n5,vehicles,int\n6,income_lower_bound,int\n7,income_upper_bound,int\n```\n\nThe data tests cannot see a column moved, retyped or added: the tool matches columns by name\nand compares numbers by value. This one can, and it is the test a rename or a new column fails\nfirst — on purpose: the contract changed, and the human says whether it should.\n`input_view_name` is a `LIKE` pattern (`_` matches any character); one view per test, with `=`:\n`input_view_name IN ( … )` answers no rows and no error, which a \"no rows\" test would read as a\npass.\n\n### The rows the consumer reads\n\nThe expected rows below are what the TPC-DS sample data gives; a suite of yours carries what\nyour server answers (\"Expected values\", below).\n\n```text\n# verified: 9.5.1 (live, 2026-10-06)\n# The mart as the dashboards read it, ordered by its key. Taken after the count test passed.\n%NAME household_income_by_band_rows\n%EXECUTION[query] {ds:vdp}\nSELECT income_band_sk, income_lower_bound, income_upper_bound, household_count, avg_dependents\nFROM household_income_by_band\nORDER BY income_band_sk\n%RESULTS[data]\nincome_band_sk,income_lower_bound,income_upper_bound,household_count,avg_dependents\n1,0,10000,360,4.5\n2,10001,20000,360,4.5\n3,20001,30000,360,4.5\n4,30001,40000,360,4.5\n5,40001,50000,360,4.5\n6,50001,60000,360,4.5\n7,60001,70000,360,4.5\n8,70001,80000,360,4.5\n9,80001,90000,360,4.5\n10,90001,100000,360,4.5\n11,100001,110000,360,4.5\n12,110001,120000,360,4.5\n13,120001,130000,360,4.5\n14,130001,140000,360,4.5\n15,140001,150000,360,4.5\n16,150001,160000,360,4.5\n17,160001,170000,360,4.5\n18,170001,180000,360,4.5\n19,180001,190000,360,4.5\n20,190001,200000,360,4.5\n```\n\n- **Name the columns and `ORDER BY` the key.** Inline data is compared in order, so a query\n  without `ORDER BY` fails on its first row — or passes today and fails after the next change of\n  plan. `SELECT *` fails the day a column is added, with the numbers unchanged. A key with a\n  `NULL` row (the group of a `LEFT JOIN`) sorts by `CASE WHEN k IS NULL THEN 1 ELSE 0 END, k`:\n  where the sort runs — Denodo, or the database it is delegated to — decides where `NULL`\n  lands.\n- This test pins **today's data**: it fails after a reload of the sources and on an environment\n  with other data. Keep it for the refactor it protects — \"the rewrite changes nothing\" — and\n  say so in its `#` line; the count test is the one that stays true.\n- Past a few dozen rows, the expected rows go into a file: `%RESULTS[csv]\n  file:expected\u002F\u003Cname>.csv`, the same CSV with its header, relative to the test.\n\n### A view over a database runs in the database\n\n```text\n# verified: 9.5.1 (live, 2026-10-06)\n# The mart is one SQL statement in the warehouse: no expression left in Denodo, no second source.\n%NAME household_income_by_band_runs_in_the_database\n%EXECUTION[query] {ds:vdp}\nSELECT COUNT(*) AS plans_not_delegated\nFROM GET_QUERY_EXECUTION_PLAN()\nWHERE input_query = 'SELECT * FROM household_income_by_band'\n  AND (execution_plan LIKE '%noDelegationCause%'\n       OR execution_plan LIKE '%JDBC ROUTE (%JDBC ROUTE (%')\n%RESULTS[data]\nplans_not_delegated\n0\n```\n\nFor a mart whose base views are JDBC (`\u002Fdenodo:views`, Silent failure 3): a `MEDIAN` or a cast\nthe database cannot run, or a second data source, turns the answer to `1` — nothing else\nreports it. The query is planned, not run. Quotes inside `input_query` are doubled. `%TRACE`\ndoes not replace this test: against 9.5.1, with the Testing Tool release it was measured with,\nit failed every test it was in (`references\u002Fformat.md`).\n\n## Expected values: from the server, after the checks pass\n\nNever type an expected value from what the data \"should\" be, and never take one from a view\nwhose count test has not passed. Run the test's own query — `vql run --env dev --database\nsales_analytics -e \"\u003Cthe %EXECUTION query>\" --max-rows 500` — and write the rows as the tool\ncompares them:\n\n| The value | Write it |\n|---|---|\n| `NULL` | an empty field. The tool cannot tell `NULL` from `''` — select `x IS NULL AS x_is_null` when it matters |\n| text | exactly, case and spaces included; text may arrive padded to its column width (a `CHAR(n)` column, a file that pads its fields) — `TRIM` in the query rather than quoting padding an editor will strip |\n| text with a comma or a quote, starting with `#` or a space | quoted: `\"a, b\"`, `\"#1\"`; a `\"` inside doubled. **An unquoted line starting with `#` is a comment and its row is gone** |\n| `${` | `\\${` — in the query too |\n| `decimal`, `int`, `long` | as `vql run` prints them; `12.50` equals `12.5` |\n| `double` (an `AVG`, a ratio) | round it in the query — `ROUND(AVG(x), 2)` — never its full digits |\n| `localdate` | `2024-03-05` |\n| `timestamp` | format it in the query, `FORMATDATE('yyyy-MM-dd HH:mm:ss', ts) AS ts`, and write the text: the tool prints a `timestamp` in its own time zone and wants `.SSS` |\n| `boolean` | `true`, `false` |\n\n## Prove that each test can fail\n\nRun each new test once **broken on purpose**, on a copy of the folder, outside the project,\nunder a fresh name — one expected value changed, `HAVING COUNT(*) > 0` for a \"no rows\" test,\n`input_retrieve_invalid_views_only = false` in the `GET_VIEWS()` test (it then lists the\ndatabase's views, which proves the name finds them) — run the copy and see every test fail with\nthe message you expect (`testing run` on the copy's folder). A test that passes both ways checks\nnothing. An edited test that already fails against a regressed view has shown it can fail; see\nit pass against the fixed definition (**When a test fails**, below). So does a test that is\nred the day it is written: its expected side is proved only by passing against a definition\nthat is right. Then run the folder itself and read it as **Verify** says.\n\n## Running it\n\n```\n${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdenodo testing run --env dev --database sales_analytics \\\n    --tool \u003Cwhere the Testing Tool was unzipped> --java-home \u003CJava 17+> denodo\u002Fsales_analytics\u002Ftests\n```\n\nstarts the Denodo Testing Tool's `bin\u002Fdenodo-test.sh` through `bash` on the folder (or one\nfile) with a temporary configuration from the profile, and answers with one JSON document —\n`exit_code`, `summary` (`run`, `ok`, `failed`, `zero_tuple`), each test with its `status` and\n`message`, `test_files` (the `.denodotest` files it found), and on a failure `output_tail`, the\nlast lines the tool printed.\n`--tool` defaults to `DENODO_TESTING_TOOL_HOME`, `--java-home` to the environment's `JAVA_HOME`.\n\n- **`ok: true` (exit `0`) needs the tool's exit code `0` and every test of the summary OK.** A\n  run without a summary — a usage message, a Java stack trace — is a failure, and `warning`\n  says when fewer tests ran than there are files: a misnamed one was skipped.\n- The tests connect to `--database`; the JDBC port is the profile's `jdbc_port`, 9999 when the\n  profile names none — not its `port`, which is the ODBC one.\n- The tests run as the profile's user — often an administrator, whom no security policy\n  restricts: a test of what a restricted person sees impersonates them (`\u002Fdenodo:security`).\n\n**When the human runs the tool themselves** — their terminal, a scheduled job on their machine —\n`testing config --env dev --database sales_analytics` writes the same configuration to a lasting\nfile beside the profiles file (`\u003Cprofiles dir>\u002Ftesting\u002F\u003Cenv>\u002F\u003Cdatabase>.properties`, 0600) and\nanswers with its `path`, never the password; it refuses a path inside a git work tree the\nrepository does not ignore. Give them the launcher line, from the tool's own `bin\u002F` — the tool\nlogs to `..\u002Flog` of wherever it starts — with absolute paths and `bash`, because the launcher\ncomes out of the zip without its execute bit:\n\n```\ncd \"\u003Ctool home>\u002Fbin\" && JAVA_HOME=\u003Cjava 17+> bash denodo-test.sh file:\u003Cpath from testing config> file:\u003Cabsolute path of tests\u002F>\n```\n\nOn Windows, in `cmd`:\n\n```\ncd \u002Fd \"\u003Ctool home>\\bin\" && set \"JAVA_HOME=\u003Cjava 17+>\" && denodo-test.bat file:\u003Cpath from testing config> file:\u003Cabsolute path of tests>\n```\n\nNever open that file and never put its path into a command of yours: run the tests with\n`testing run`. The launcher exits `0` after printing its usage when an argument is missing, so\nwhoever runs it reads the summary — `Tests run: N, OK: M (FAILED: K)` — not only the exit code.\n`ERROR DriverDataSource … Failed to load class of driverClassName` at its start is noise.\n\n**For CI**, tell the human what the pipeline needs, and write none of it into the repository:\na configuration file with the keys `testing config` writes (`references\u002Fformat.md`), made by the\npipeline from its own secret store, for a user that may only read the project's database; the\nsame launcher line; and a failed run when the summary is missing. If the repository already\nholds a configuration with a password in it, say so: it has to leave git, and the password has\nto change. Leave the file where it is — CI may still read it — and do not print it.\n\n## When a test fails\n\n| The message | What it says | What to do |\n|---|---|---|\n| `Expected data columns\u002Fheaders do NOT match … expected [[a, b]] but obtained [[a, b, c]]` | the query returns other columns than the expected data names — a `SELECT *` over a view that gained one, or a renamed column | `SELECT *` in a test is the bug: name the columns. A renamed or removed column is a change of the contract: the human's call |\n| `Row 1, col 1 of the obtained result contained [x], but [y] was expected` in a `[data]` or `[csv]` test, and `y` is further down the obtained rows | order, not data | `ORDER BY` the key in the query. In a `[query]` against `[query]` the same message is a row lost or gained — compare the row counts first |\n| `Row n, col m … contained [x], but [y] was expected` | a value changed — or, in an unordered `[query]` against `[query]`, a row too many or too few: both sides are sorted and compared row by row | **establish which side is right before touching either** (below) |\n| `Obtained n rows, but some of the expected m rows were not found` \u002F `Expected results are only a subset … Obtained n rows, but expected m` | rows appeared or went missing. On a \"no rows\" test (`… but expected 0`) the check found what it looks for — duplicated keys, broken views | the count test says whether the mart still holds every input row; then as above |\n| `Test raised an unexpected java.sql.SQLException: …` | the query itself fails: a view gone, renamed or `INVALID` | `GET_VIEWS(… invalid only)`; the views' own history |\n| `… contains variables so context variables cannot be null` | a `${` in the test | `\\${` |\n\n**A value changed: which side is right.** Find what changed — `git log -p` of the `.vql`, and\nthe server against the file (`DESC VQL VIEW \u003Cview> ('includeDependencies' = 'no',\n'dropElements' = 'no')`), because the view on the server may not be the one in git. Re-run the count test and compare the inputs\nyourself. Then:\n\n- the test was wrong (an order it relied on, a padded value, an unrounded double) — fix the\n  test, and say what was wrong with it. **Both can be true at once**: a `SELECT *` without an\n  `ORDER BY` over a view that also lost a row. Harden the test, and then it must still fail —\n  for the real reason only;\n- the views changed the answer — a label, a group, a total — **report it, and leave the test\n  failing**: whether the new answer is intended is the human's decision. The view's own\n  `DESCRIPTION` is evidence: a change that contradicts it is a regression until the human says\n  otherwise.\n- **Fixing the view is not fixing the test.** Re-applying a view that existed before this\n  session changes what every reader of it gets — the dashboard, the report, the other views —\n  and a request about tests does not cover changing a view, even one your project declares.\n  Put the fix into the `.vql` file, say what it changes, and leave applying it to the human's\n  yes. When the fix itself needs a decision the human has not made, describe the options in the\n  message instead of choosing one in the file.\n- **Show that the fix turns the suite green without applying it**: a copy of the suite outside\n  the project, with the view's name replaced by the fixed definition as a subquery — `FROM\n  ( SELECT … ) m` — run with `testing run`. It reads only, and it proves the\n  definition, not the deployed view; say both in the message.\n- **Say what happens if nobody acts**: when the human named a date — a report, a release — the\n  message says what that date gets from the server as it is now.\n\n| Rationalization | Reality |\n|---|---|\n| \"The numbers didn't change, the test is just out of date — regenerate the expected rows from today's output\" | Regenerating turns any change, intended or not, into the new truth. Find which side moved first. |\n| \"It was surely an accident \u002F the human is away and the deadline is close — I'll restore or fix the view so CI is green\" | That changes what the view's readers get, and nobody asked you to: the finding, the fix in the file and a red suite that says why are the answer; the yes is theirs. |\n| \"A snapshot of today's figures is a useful test too — it passes today\" | It passes today *because* it copies today's mistakes. Rows are pinned after the count test passes, or the defect is pinned with them. |\n| \"`type:subset` is enough here\" | It passes with any extra rows, fails on unsorted results unless `ordered:false`, and passes against anything with no expected rows. Use it for a known part of a large result, never to quiet a failure. |\n| \"I need the password for the configuration — I'll load it through the plugin's profile loader, or write a `run-tests.sh` that builds the file from environment variables\" | `testing run` gives the tool its configuration from the profile; neither you nor a command line ever holds the password, and the project gets no runner to maintain. |\n| \"There is no password I may read, so the tests cannot run — I'll leave them unrun\" | `testing run` is the way to run them. A suite that never ran has proved nothing, not even that it parses. |\n| \"The repository already has a configuration with the password, and CI uses it\" | Run with `testing run`, and tell the human: the file has to leave git and the password has to change. |\n\n## Safety\n\nThe Testing Tool runs whatever a test holds — `%SETUP`, `%TEARDOWN`, an `%EXECUTION[script]` —\non the server of its configuration, **past the classifier every other command of this plugin\napplies**. So:\n\n- **A suite reads.** `%EXECUTION[query]` and `%RESULTS[query]` with a `SELECT`, and nothing\n  else, is what this skill writes. A test that needs data or objects of its own is a fixture in\n  the project's own database, created by a `.vql` file through `\u002Fdenodo:execute` like any other\n  object — not by a `%SETUP`.\n- **A suite you did not write is a file of statements**: read every `%SETUP`, `%TEARDOWN` and\n  script before running it. Running one that changes state is applying VQL — `\u002Fdenodo:vql`'s\n  table decides who runs it.\n- **A failed `%SETUP` statement skips the `%TEARDOWN`** of its test, and so does a failing\n  `%RESULTS` query: whatever the setup created stays on the server — *verified: 9.5.1 (live,\n  2026-10-05)*.\n- On a profile marked `production`, `testing run` and `testing config` refuse without\n  `--allow-destructive`.\n  Show the human what the suite runs; the flag comes after their yes, as everywhere in this\n  plugin (`\u002Fdenodo:execute`).\n\n**Red flags — stop:** you are about to change an expected value to what the server returns now;\na test passes and you have not seen it fail; a password, a `configuration.properties` or a\nscript that builds one is about to enter the project; you are reading the profiles file, or\nopening or naming in a command the file `testing config` wrote; a suite you are about to run\nhas a `%SETUP` or a `%TEARDOWN`; `env.production` is `true`.\n\n## Verify\n\n| Question | Read-back |\n|---|---|\n| Did every test run | `summary.run` equals `test_files`, and there is no `warning` |\n| Did they pass | `ok: true` |\n| Did the data tests see data | `summary.zero_tuple` equals the number of \"no rows\" tests; one more means a data test compared nothing |\n| Can each new test fail | the broken run of **Prove that each test can fail**, one per test |\n| Is the project clean | `git status`: no configuration file, no `log\u002F` folder, no `#denodo-failed-tests-execution.metafile` |\n\n## Reference\n\n- `references\u002Fformat.md` — the format in full: files, folders and order, every directive and\n  qualifier, parsing traps, the comparison rules measured case by case, expected errors,\n  variables and inheritance, `%SETUP`\u002F`%TEARDOWN`, the trace, the launcher's exit codes, the\n  configuration file and its keys.\n",{"name":5,"description":7,"allowed-tools":23},"Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdenodo *)","main","fd41fb386b25141c459264d10a1c49bd3b4f4c4b","skills\u002Ftesting","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills","https:\u002F\u002Fgithub.com\u002Fkirivandubai","2026-10-29 13:49:22",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add kirivandubai\u002Fdenodo_wipe_coading_skills --skill testing",{"tool":36,"command":37},"bunx","bunx skills add kirivandubai\u002Fdenodo_wipe_coading_skills --skill testing",{"tool":39,"command":40},"pnpm","pnpm dlx skills add kirivandubai\u002Fdenodo_wipe_coading_skills --skill testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Fformat.md","REFERENCE","参考文档",12310,"https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting\u002Freferences\u002Fformat.md",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7C2NGAJEKKG90BG9Q1Z2M96","vql","Use when doing anything with Denodo — creating or changing a database, folder, tag, data source, wrapper, base, derived, interface or metric view, association, cache, role or security policy, remote table or summary, a Data Marketplace object, a regression test or a Scheduler job; writing or fixing VQL, or an expression in a SELECT — text, dates, casts; deciding where an object lives and what to name it; \"where do I start\", \"build a mart\", \"connect a source\", \"vibe-code on Denodo\". Start here when the request is ambiguous or names no single object.","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fvql\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7C2N5W4203SQ2TRYT6E0VSR","views","Use when building on top of views that already exist in Denodo 9.5 — a derived view (a join, an aggregate, a mart, a filtered or parameterised view, a UNION ALL of views of one entity, FLATTEN of a JSON array into rows, NEST of rows into an array), an interface view, or an association between two views. Also before changing a view others depend on — \"what uses this view\", \"can I drop this column\", \"where does this field come from\" — for whether a mart over a database runs there or pulls every row into Denodo, for \"combine these sources into one view\", \"expose this as a data product\", and for a view created without an error that fails on SELECT or turns up INVALID. Not for sources and base views — \u002Fdenodo:datasources; databases, folders, VDP tags — \u002Fdenodo:catalog; a view's cache — \u002Fdenodo:cache; a copy stored as a table — \u002Fdenodo:materialize; a metric view — \u002Fdenodo:metrics.","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fviews\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7C2MMFX40K0WTDNW05VCQEJ","semantics","Use when the views of an existing Denodo 9.5 database have to be understood by people and by AI consumers — the Denodo MCP Server, Assisted Query in the Data Marketplace, the AI SDK. Auditing a database for views and fields without descriptions, primary keys that are missing or not unique, missing associations and the VDP tag the MCP Server shows views by; writing view, field, association and tag descriptions from the data, and primary keys. Also for \"describe \u002F document these views\", \"prepare this database for AI, MCP or Assisted Query\", \"why does the agent not see this view through MCP\", a description that says the wrong thing. Not for building or changing what a view computes — \u002Fdenodo:views; not for marketplace-only metadata (logical names, property groups, marketplace tags) — \u002Fdenodo:marketplace.","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fsemantics\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7C2M9XVTRVXYXMGTEC62EFB","security","Use when deciding who may read what in Denodo 9.5 — masking or hiding columns (PII, contact details, salaries, bank accounts) from some users or roles, letting a role see only some rows (a country, a tenant) or each person only their own, taking someone's access away (ALTER USER … REVOKE), denying a view to a group, a global security policy (CREATE GLOBAL_SECURITY_POLICY) and the VDP tags it reads, giving a user a role or giving a role access to a database or views (CREATE ROLE … GRANT EXECUTE, ALTER USER … GRANT ROLE), checking what a given user really gets back, or a user who sees data a restriction should hide (\"he still gets every row\", \"the masking stopped working\"). Not for a tag as a label without a policy (\u002Fdenodo:catalog) or for descriptions and the MCP visibility tag (\u002Fdenodo:semantics).","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7C2KYWB8B6ZC026CT3Z1MZA","scheduler","Use when something in Denodo 9.5 has to happen on a schedule, or a scheduled run misbehaves — refreshing the cache of a view every night or every hour, running REFRESH of a remote table or a procedure at a set time, exporting a view to a CSV file every week or month, running a Denodo Scheduler job now, stopping, pausing, enabling or deleting it, reading what last night's run did or why it failed, \"the cache doubles after every refresh\", \"the job fires at the wrong hour\", \"the export file is missing or has no header\". Denodo Scheduler projects, jobs, cron triggers and reports, through the REST API of the Scheduler administration tool. Not for switching a cache on or loading it once (\u002Fdenodo:cache), not for creating the remote table or summary itself (\u002Fdenodo:materialize).","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fscheduler\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7C2KQBX7XS4JYW68BBRPXQN","procedures","Use when a Denodo 9.5 stored procedure is in play — calling one the server already ships (SELECT … FROM GET_VIEWS() \u002F USED_BY() … WHERE input_… = …, the CALL statement, finding which predefined procedure answers a question and what parameters it takes), writing your own procedural logic in VQL (CREATE OR REPLACE VQL PROCEDURE … BEGIN … END, local variables, IF\u002FLOOP\u002FCASE, cursors, exceptions, EXECUTE of DDL), or importing a Java one from a JAR (CREATE PROCEDURE … CLASSNAME … JARS). Also for \"run the stats procedure\", \"loop over rows and create views\", \"call that procedure from a view\". Not for introspecting a JDBC source into base views — that is \u002Fdenodo:datasources.","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fprocedures\u002FSKILL.md",[],[]]