MCPcopy Create free account
hub / github.com/dataform-co/dataform / test

Method test

core/session.ts:420–427  ·  view source on GitHub ↗

* Creates a Test action. * * Available only in the `/definitions` directory. * * @see [Test](Test) for examples on how to use. * * <!-- This doesn't currently support passing of config blocks as the second argument, but it * could in the future. --> * <!-- Note: this action t

(name: string)

Source from the content-addressed store, hash-verified

418 * <!-- Note: this action type isn't very thoroughly tested, so careful with changes -->
419 */
420 public test(name: string): Test {
421 const newTest = new Test(this, { name });
422 newTest.session = this;
423 newTest.setFilename(utils.getCallerFile(this.rootDir));
424 // Add it to global index.
425 this.tests.push(newTest)
426 return newTest;
427 }
428
429 /**
430 * Creates a Notebook action.

Callers 11

sqlxActionMethod · 0.95
resolveIdFunction · 0.80
validateConnectionFormatFunction · 0.80
validateStorageUriFormatFunction · 0.80
runCliFunction · 0.80
bigquery.spec.tsFile · 0.80
index_test.tsFile · 0.80

Calls 2

setFilenameMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected