Skip to content
#

tap

Here are 380 public repositories matching this topic...

ava
Vampire
Vampire commented Apr 13, 2020

If you comment out test cases with a here-doc like

: <<EOC
@test 'to be ignored for now' {
}
EOC

this greatly confuses bats-core.
As far as I have seen from a very quick look, you pre-process the test file line-wise.
So every line that looks like a test, even if just part of a multi-line string or here-doc will be considered a test case and confuse bats-core later on.

serhalp
serhalp commented Nov 18, 2019

The README for nyc states:

Please start with the pre-configured @istanbuljs/nyc-config-babel preset [...]

The README for nyc-config-babel states:

Handy default configuration for instrumenting your babel-backed project [...]

When I configure my babel project without this package, everything seems to work correctly. None of the documentation I've found explains why I should pull in t

pavelloz
pavelloz commented Feb 8, 2020

Hey,

Im going through examples in readme and in https://volument.com/baretest but as far as i can tell, just copy pasting them throws errors.

It would be nice to have a repo to clone to:

  1. see how to set it up. currently i dont understand what this supposed to be const test = require('.')('sum'), in docs. And its not lack of my js knowledge that bothers me.
  2. verify the performance cl
christopheraue
christopheraue commented Feb 2, 2020

Running the following test file should report a failure but does not:

// error.js
const {test} = require('zora')

test('error message with string', t => {
  t.throws(() => { throw new Error('message') }, 'another message')
})

Output:

$ node error.js 
TAP version 13
# error message with string
ok 1 - another message
1..1

# ok
# success: 1
# skipped: 0
# failure:
jorgebucaran
jorgebucaran commented Feb 7, 2019

If you upgraded to the latest version, you'll need to make some adjustments. Sorry! 🙇

In this issue, I'll explain what these changes are and how to rewrite your tests.

History

Let's make sure we are on the same page. The previous test syntax wasn't valid fish syntax. Running fishtape test.fish transformed test blocks to valid to [test](https://fishshell.com/docs/current/commands.

Improve this page

Add a description, image, and links to the tap topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the tap topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.