Giter Club home page Giter Club logo

fly-ava's People

Contributors

pine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fly-ava's Issues

console.log() in test is not working

I'm using fly-ava to run my AVA tests in my project. I found normal console.log() is not outputting log in terminal, while directly running ./node_modules/ava/cli.js outputs log.

The actual situation is, my PEG.js parser's trace output, is not shown via fly-ava. It uses console.log(), too. I have to run AVA separately to debug my PEG grammar. It's very painful to debug grammar without trace information.

Is there any idea to make log enabled?

extra files are passed to AVA when following after another fly task

Let's say we have such a flyfile.js

exports.foo = function* foo (fly) {
  yield fly.source('./src/index.js').target('build/index.js')
}

exports.test = function* test (fly) {
  yield fly.start('foo')
  yield fly.source('./test/index.js').ava() // error
}

exports.test_another = function* test_another (fly) {
  yield fly.source('./src/index.js').target('build/index.js')
  yield fly.source('./test/index.js').ava() // works
}

./src/index.js is just a blank file.

./test/index.js is a regular AVA test file:

import test from 'ava'

test('foo', t => {
  t.pass()
})

Fly will fail test task with error: test failed because No tests found in src/index.js, make sure to import "ava" at the top of your test file. Even I just source('./test/index.js') to AVA.

But task_another runs well.

I'm not sure if this is an fly issue.

Use programmatic API

We've introduced a programmatic API. It's still not documented, as we want to be free to change it around, but would be nice to get some real world use of it.

You could look at how avajs/ava#345 gets implemented.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.