Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Unit tests #12

Closed
marcooliveira opened this Issue · 8 comments

3 participants

@marcooliveira

Create unit tests for the main engine, and each of the built-in tasks, as well as for the CLI.

@marcooliveira

Integrate with https://travis-ci.org/

@marcooliveira

A lot has been done for this issue. Automaton already has a lot of important tests, but we still need to complete it. Also, Travis CI has already been integrated.

@satazor
Owner

@filipediasferreira all the tasks are implemented, including cp and mv.

chmod, cp, mkdir, mv, rm and symlink are supposed to work just like they work in unix, except that we can specify multiple entries. For instance:

{
  task: 'cp',
  options: {
    files: {
      'my/path/to/src': 'my/path/to/dst',        // Equivalent to mv my/path/to/src my/path/to/dst
      'my/path/to/src2/*': 'my/path/to/dst2/'    // Equivalent to mv my/path/to/src2/* my/path/to/dst2/
    }
  }
}

Please note that the cp and mv tasks have various combinations of source/destination that can change the outcome.
For instance, adding a trailing slash to the destination has a different behavior in some cases.
Please experiment a bit in your terminal and you will see what I mean. The more complete these particular tasks tests, the better.

I would also like to request to actually give priority to cp and mv, because they probably aren't conforming 100% with the unix implementation. Please look at the TODO's written in the cp and mv tasks to see what I mean.

@satazor
Owner

Core tests are done.
Going to work on the CLI tests tomorrow.

@satazor
Owner

Logging + rudimentary CLI tests are done.

@satazor
Owner

@filipediasferreira don't forget to finish up the mv tests

@filipediasferreira

I will take care of this on the next few days ;)

@satazor
Owner

Thanks @filipediasferreira, going to close this out! We got plenty of tests.

@satazor satazor closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.