* 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)
| 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. |
no test coverage detected