Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Replace BATS test with something more cross-platform #31

Open
bendtherules opened this issue Oct 3, 2015 · 1 comment
Open

Replace BATS test with something more cross-platform #31

bendtherules opened this issue Oct 3, 2015 · 1 comment
Milestone

Comments

@bendtherules
Copy link
Contributor

From what I understand, BATS is used for testing the cmdline scripts, but works only on linux - As we're trying to make them cross-platform, we should also move away from BATS to some Python module which does this well. That'll ease and streamline the testing process on Windows, although it might not be observable in the CI.

It should be easy to put together some glue python code for this, but there might be some well-developed module just for this - That will be the preferred solution.

Edit:

Possibly useful modules:

scripttest [Small and to the point]

Edit 2 :

I'll give it a try to translate the cli test cases using scripttest. What do you think, will it be a good replacement for BATS?

Also, the code coverage has fall sharply after moving the scripts to cmd, how can we improve that? Should we run the same cli tests both in cli mode and import pontoon-configure mode to keep the stats happy?

@duggan
Copy link
Owner

duggan commented Nov 7, 2015

Sorry, missed this issue. scripttest looks good. I'll give it a go myself if you don't get a chance to look at it.

@duggan duggan added this to the 0.3.0 milestone Nov 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants